Re: Disable --whole-archive when using convenience archives

2009-12-03 Thread Alon Bar-Lev
Hello, On Thu, Dec 3, 2009 at 10:39 PM, Ralf Wildenhues wrote: > * Alon Bar-Lev wrote on Thu, Dec 03, 2009 at 09:28:59PM CET: >> I had to add -prefer-pic to CFLAGS in order it to work properly... :) >> >> Wow... this is an ugly workaround... Any reason why a simple switch to >> "libtool --mode=li

Re: Disable --whole-archive when using convenience archives

2009-12-03 Thread Ralf Wildenhues
Hello Alon, please don't top-post, thanks. * Alon Bar-Lev wrote on Thu, Dec 03, 2009 at 09:28:59PM CET: > On Thu, Dec 3, 2009 at 10:17 PM, Ralf Wildenhues wrote: > > * Alon Bar-Lev wrote on Thu, Dec 03, 2009 at 07:08:03PM CET: > > > I have some convenience archives linked against several modules.

Re: Disable --whole-archive when using convenience archives

2009-12-03 Thread Alon Bar-Lev
Thank you for quick response (as usual... :) ) I had to add -prefer-pic to CFLAGS in order it to work properly... :) Wow... this is an ugly workaround... Any reason why a simple switch to "libtool --mode=link" is not supported? Is it the first time someone needs this? Thanks, Alon. --- AUTOMAK

Re: Disable --whole-archive when using convenience archives

2009-12-03 Thread Ralf Wildenhues
Hello Alon, * Alon Bar-Lev wrote on Thu, Dec 03, 2009 at 07:08:03PM CET: > I have some convenience archives linked against several modules. > > I wish only required objects to be included in modules. Then make the convenience archives not be convenience archives any longer, i.e., make them libto

Disable --whole-archive when using convenience archives

2009-12-03 Thread Alon Bar-Lev
Hello, Using: autoconf-2.63 automake-1.10.2 libtool-2.2.6a I have some convenience archives linked against several modules. I wish only required objects to be included in modules. But libtool's usage of --whole-archive forces the whole archive to be included in the module. I could not find any

Re: -fpic support in libtool?

2009-12-03 Thread Paolo Bonzini
On 12/03/2009 08:20 AM, Ralf Wildenhues wrote: We should probably change the code so that the override can be done before AC_PROG_LIBTOOL, so that at least -DPIC is added consistently, and that the compile test uses the right flag. Using a "real" cache variable will do. I'll give it a shot. P

Re: Preloading without .la

2009-12-03 Thread Pierre Ossman
On Wed, 2 Dec 2009 18:34:06 +0100 Pierre Ossman wrote: > > So either libtool needs to start mangling, or libltdl needs to stop. > I'm voting for the former as symbol names can already contain the > mangled module name. > Apparently this wasn't a good idea. Some applications look through the pr

Re: Preloading without .la

2009-12-03 Thread Pierre Ossman
On Wed, 2 Dec 2009 12:58:47 -0600 (CST) Bob Friesenhahn wrote: > On Wed, 2 Dec 2009, Pierre Ossman wrote: > > > I upgraded to libtool 2 the other day and was hit by this bug again. > > Has there been any work on fixing this rather large hole in the preload > > functionality? > > Did someone say

Re: -fpic support in libtool?

2009-12-03 Thread Joakim Tjernlund
Ralf Wildenhues wrote on 03/12/2009 08:20:22: > From: Ralf Wildenhues > To: Joakim Tjernlund > Cc: Bob Friesenhahn , libtool@gnu.org > Date: 03/12/2009 08:20 > Subject: Re: -fpic support in libtool? > > * Joakim Tjernlund wrote on Thu, Dec 03, 2009 at 08:06:25AM CET: > > > Libtool can be influe