Domanda

i want build iconv as static library on my MacOSX i downloaded sources from http://www.gnu.org/software/libiconv/ and tried:

$ ./configure
$ make
$ make install

This process only makes libiconv.dylib, a dynamic library.

How can I build the static library libiconv.a?

È stato utile?

Soluzione

Run configure as follows:

./configure --enable-static

Then run make and you will see the static library ./lib/.libs/libiconv.a

To find this option, run ./configure --help:

$ ./configure --help | grep static
  --enable-static[=PKGS]  build static libraries [default=no]
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top