libtool

Build libtool application with static linking to local components

こ雲淡風輕ζ 提交于 2019-12-12 03:27:59
问题 I am working with an open-source application that uses libtool in its build process. I would like to statically link the local components of the application with the following intended benefits: doesn't require libtool wrapper to launch function calls aren't indirected by dynamic linking during debugging avoid unintended dynamic linking to existing system-installed library Is there a standard option to the build process that does this? Due to dependencies on non-static system libraries I can

Does libtool strip all options with -M?

耗尽温柔 提交于 2019-12-11 17:13:09
问题 I'm trying to track down a failure to link with a mapfile on Solaris. The missing mapfile causes the following error when I try to run our self tests: $ ./cryptestcwd v ld.so.1: cryptestcwd: fatal: /export/home/cryptopp/.libs/libcryptopp.so.6: hardware capability (CA_SUNW_HW_1) unsupported: 0x4800000 [ AES SSE4.1 ] Killed I've gotten as far as this Automake rule. libcryptopp_la_LINK , which I believe is the shared object, is missing AM_LDFLAGS . AM_LDFLAGS holds the -M cryptopp.mapfile option

LDFLAGS usage in autotools with libtool

♀尐吖头ヾ 提交于 2019-12-11 11:49:20
问题 Depending on the OS, I define a special LDFLAGS in my configure.ac: AC_CANONICAL_HOST if test "$host_os" = cygwin then LDFLAGS="$LDFLAGS -Wl,-no-undefined" export LDFLAGS fi AC_SUBST([LDFLAGS]) The package uses AC_PROG_LIBTOOL and when LDFLAGS is passed to libtool, the -Wl prefix remains, and the linker doesn't understand the option. If I remove this prefix, the AC_PROG_CXX macro fails, because GCC chokes on -no-undefined by itself. What am I doing wrong? LDFLAGS is not mentioned the Makefile

Debian dropped support for .la files; how do I build now?

亡梦爱人 提交于 2019-12-11 10:34:36
问题 Background I recently came across the fuppes UPnP media server and it seemed great. I installed it on my home server and started using it to stream video to my XBox. It worked really really well and I was happy with it. Then I upgraded my servers distribution and fuppes stopped working; I now know that it's because various libraries have depreciated, most specifically debian has started dropping the .la libtool files from the majority of their packages. The Problem / Question So my question

Recompiling libiconv, gettext undefined symbols occurring after an already successful install

这一生的挚爱 提交于 2019-12-11 05:03:50
问题 Main Obvious Error " Undefined symbols for architecture x86_64 " How do I get these to compile successfully again? The Operating System is Mac OS X. Have installed multiple programs from their sources. Noticed the problem after having installed: binutils v2.25 , libtool v2.4.6 , glib v2.45.2 , OR pkgconfig v0.28 Before installing any of the above, recompiling libiconv and gettext produced no errors and both successfully installed multiple times. pkg-config --list-all does not display libiconv

Conditionally disable shared library build

▼魔方 西西 提交于 2019-12-11 02:55:53
问题 I’ve written a C library that builds using Libtool, and I’d like to only build static libraries on Cygwin. To that end, I placed if test "$target_os" = "cygwin"; then AC_DISABLE_SHARED fi in my configure.ac . This does indeed disable building shared libraries on Cygwin; however, it also disables building them everywhere else. I assume this is because expanding AC_DISABLE_SHARED causes some unfortunate side effects. How can I use Libtool to avoid building shared libraries on Cygwin while still

How to make libtool point to user installed library?

为君一笑 提交于 2019-12-10 18:09:28
问题 I am trying to install a rubygem which keeps on trying to read a library which is not available. grep: /usr/lib64/libgdbm.la: No such file or directory /bin/sed: can't read /usr/lib64/libgdbm.la: No such file or directory libtool: link: /usr/lib64/libgdbm.la' is not a valid libtool archive In order to work around this, I installed my own libgdbm and provided the path to the libgdbm in the makefile LDFLAGs but to no avail. Any help is much appreciated. 回答1: This rubygem seems to do dirty stuff

How do I link a shared library with --as-needed with automake?

混江龙づ霸主 提交于 2019-12-10 16:16:59
问题 How do I link a shared library with --as-needed using Automake? When I tried adding the flag to LDFLAGS , I saw libtool called as so: /bin/bash ../../libtool --mode=link ... -Wl,--as-needed ... dependencies Which results in a call to GCC like so: gcc -shared ... dependencies ... -Wl,--as-needed ... But that's the wrong order. Is there a way to do this with Libtool? Or is there a nice way to build shared libraries using Automake but without Libtool? (I've been frustrated at Libtool for various

ltdl.h Not found error while building chaincode

烂漫一生 提交于 2019-12-09 17:56:22
问题 I am trying to build a chaincode by using go build . when i run Go build command its reporting .\hyperledger\fabric\vendor\github.com\miekg\pkcs11\pkcs11.g‌​o:29:18: fatal error:ltdl.h: No such file or directory compilation terminated I installed libtools from this link. But I am getting the same error 回答1: It worked for me on ubuntu: sudo apt install libltdl-dev 回答2: if you are using centos/RHEL 7 you can use this code yum install libtool-ltdl-devel 回答3: For Mac, make sure you have brew

g++-4.6.real: error: unrecognized option '-R'

有些话、适合烂在心里 提交于 2019-12-08 03:00:01
问题 I am trying to compile phpcompiler from source using this configure command. ./configure --prefix=/opt/phc-0.3.0.1/ --with-php=/opt/php-5.3.17/ The configure error was, checking for exit in -lboost_regex-mt... no checking for exit in -lboost_regex-mt... (cached) no checking for exit in -lboost_regex... no checking for exit in -lboost_regex... (cached) no checking for exit in -lboost_regex... (cached) no configure: error: Could not link against boost_regex Thats completely wrong as I have both