delorie.com/archives/browse.cgi | search |
Message-ID: | <437956EE.30002@ukf.net> |
Date: | Tue, 15 Nov 2005 03:33:02 +0000 |
From: | Max Bowsher <maxb1 AT ukf DOT net> |
User-Agent: | Mozilla Thunderbird 1.0.7 (Windows/20050923) |
MIME-Version: | 1.0 |
To: | "Yaakov S (Cygwin Ports)" <yselkowitz AT users DOT sourceforge DOT net> |
CC: | cygwin AT cygwin DOT com |
Subject: | Re: libtool: static libs where shared can't be built |
References: | <4373C3BB DOT 3010407 AT users DOT sourceforge DOT net> |
In-Reply-To: | <4373C3BB.3010407@users.sourceforge.net> |
OpenPGP: | id=C0F2C580 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Yaakov S (Cygwin Ports) wrote: > I have a libtool library that has undefined symbols by design, so I need > to build it static. But that seems to be impossible: > > 1) Simply omit '-no-undefined': > > /bin/sh ../libtool --mode=link --tag=CXX g++ -Wno-long-long -Wundef > -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -pipe > -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common > -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT > -DQT_NO_TRANSLATION -o libkscreensaver.la -rpath /usr/lib -L/usr/lib > -L/usr/lib/qt3/lib -L/usr/X11R6/lib -R /usr/lib -R /usr/lib -R > /usr/lib/qt3/lib -R /usr/X11R6/lib -version-info 6:0:2 main.lo > kscreensaver.lo ../kio/libkio.la ../kdecore/libkdecore.la -lqt-mt -lz > -lpng -lz -lm -lXext -lX11 -lSM -lICE -lpthread > libtool: link: warning: undefined symbols not allowed in i686-pc-cygwin > shared libraries > rm -fr .libs/libkscreensaver.a .libs/libkscreensaver.la > .libs/libkscreensaver.lai > ar cru .libs/libkscreensaver.a > ranlib .libs/libkscreensaver.a > creating libkscreensaver.la > (cd .libs && rm -f libkscreensaver.la && ln -s ../libkscreensaver.la > libkscreensaver.la) ... > Either way I get empty static libs. Is there any way to make this work? Check your config.log, specifically the result for "checking whether to build static libraries". If that's "no", try configuring with --enable-static to make it "yes". Max. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Cygwin) iD8DBQFDeVbufFNSmcDyxYARAjVbAJ9BMWFKy+M7Y2o8qYBVGFFWNPkqGQCgx7Cy 8TXvTwmfA763pSVSNG+WoxY= =nQ7m -----END PGP SIGNATURE----- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |