GNU bug report logs - #11064
CRITICAL: libtool makes static linking impossible

Previous Next

Package: libtool;

Reported by: bugdal <at> aerifal.cx

Date: Thu, 22 Mar 2012 06:45:02 UTC

Severity: normal

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: bugdal <at> aerifal.cx
To: bug-libtool <at> gnu.org
Subject: CRITICAL: libtool makes static linking impossible
Date: Thu, 22 Mar 2012 00:49:30 -0400
Recent versions of libtool (since at least 2.2.6) hijack the -static
flag to the compiler and use it to link only project-local libraries
static (i.e. still generating a dynamic-linked binary). Supposedly the
-all-static option is provided to override this behavior, but it is
not usable in any real-world programs because adding -all-static to
CFLAGS or LDFLAGS prevents all configure tests that invoke the
compiler/linker without libtool from working due to the unrecognized
option.

As far as I can tell, there is no workaround and abolutely no way to
static-link libtool-based projects without patching libtool.





This bug report was last modified 13 years and 139 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.