Question

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?

Was it helpful?

Solution

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]
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top