]> git.ipfire.org Git - thirdparty/libtool.git/commit
libtool: Don't fall back to static libraries if building them was disabled
authorVadim Zeitlin <vz-libtool@zeitlins.org>
Thu, 10 Oct 2013 00:35:13 +0000 (17:35 -0700)
committerBrooks Moses <bmoses@google.com>
Thu, 10 Oct 2013 00:35:13 +0000 (17:35 -0700)
commit12641bdc45d091fd1e014d242dcf271237f3c95c
treebeada21aa30a65744c03b5517313aa5157afab8e
parent1c89ed8e1cdbee5bf2a56627bf02ebdd427dc2e3
libtool: Don't fall back to static libraries if building them was disabled

If -no-undefined was not specified but the platform didn't
support shared libraries with undefined symbols (e.g. Cygwin/
MinGW), static libraries were built instead of shared ones,
even if building them was explicitly disabled with --disable-
static configure option.

Fix this by stopping with a fatal error if a shared library
can't be built in this case instead of unexpectedly building a
static library instead.

* libltdl/config/ltmain.m4sh (func_mode_link()): Stop with
fatal error when trying to build a shared library without -no-
undefined on a platform not supporting undefined symbols in
shared libraries.

Copyright-paperwork-exempt: Yes
build-aux/ltmain.in