سؤال

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?

هل كانت مفيدة؟

المحلول

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]
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top