質問

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