libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [patch] 1.5.14: Add GCC-specific linker flags


From: Ralf Wildenhues
Subject: Re: [patch] 1.5.14: Add GCC-specific linker flags
Date: Mon, 25 Apr 2005 13:07:40 +0200
User-agent: Mutt/1.4.1i

Hi Maciej,

Sorry for taking a while to respond.

* Maciej W. Rozycki wrote on Mon, Apr 04, 2005 at 07:09:56PM CEST:
> 
>  Libtool strips off "-nodefaultlibs", "-nostartfiles" and "-nostdlib" in 
> the link mode.  They are legitimate GCC linker flags which may be needed 
> when a non-standard set of startup files/system libraries is used, e.g. 
> during a build of new ones.

Hmm.  I see the apparent problem, and can acknowledge that this is a
problem when Libtool is used for system libs.

However, just allowing this would break things, as we assume normal
linking against system files.  It is also not sufficient to prevent
linking in of any system libraries, I believe (for example, C++ libs
will get pre- and postdeps linked in anyway).  In any case, your patch
is too lenient as it is.  Have not had a chance to think further about
this issue, though, sorry.

Regards,
Ralf


> 2005-04-04  Maciej W. Rozycki  <address@hidden>
> 
>       * ltmain.in (link mode): Pass through "-nodefaultlibs", 
>       "-nostartfiles" and "-nostdlib".

> libtool-1.5.12-gcc-linkflags.patch
> diff -up --recursive --new-file libtool-1.5.12.macro/ltmain.in 
> libtool-1.5.12/ltmain.in
> --- libtool-1.5.12.macro/ltmain.in    2005-02-05 14:04:29.000000000 +0000
> +++ libtool-1.5.12/ltmain.in  2005-02-12 23:37:40.000000000 +0000
> @@ -1586,6 +1586,11 @@ EOF
>       continue
>       ;;
>  
> +      -nodefaultlibs | -nostartfiles | -nostdlib )
> +     compiler_flags="$compiler_flags $arg"
> +     continue
> +     ;;
> +
>        -objectlist)
>       prev=objectlist
>       continue
> 
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]