Re: question regarding AC_CHECK_LIB

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2.Morever by default AC_CHECK_LIB looks for dynamic libraries.How do I
specify that I should look for a static library.

AC_CHECK_LIB looks for both static and dynamic libraries. If you wish to find
only static libraries, you could determine the compiler flag(s) that do what
`-static' does for gcc and add them to LDFLAGS for the AC_CHECK_LIB. It is
probably easiest to harness Libtool for that.

If you want to use libtool for your autoconf tests, then it may be good to know about the following issue:


<http://lists.gnu.org/archive/html/libtool/2004-11/msg00372.html>

Best regards,
Sander Niemeijer



_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux