libtool
[Top][All Lists]
Advanced

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

Re: Compiler/Linker flags


From: Christopher Hulbert
Subject: Re: Compiler/Linker flags
Date: Thu, 18 Jan 2007 07:18:07 -0500

On 1/17/07, Bob Friesenhahn <address@hidden> wrote:
On Wed, 17 Jan 2007, Christopher Hulbert wrote:

> It seems that libtool is set up to strip unrecognized flags unless
> using something like -Wc,flag.  Can anyone give me a brief answer as
> to why? I often find myself going through hoops to get flags past

The reason for the odd behavior is that libtool needs to know which
options should be applied to the compiler, and which should be applied
to the linker.  Only libtool knows if the compiler is used for
linking, or if the system linker is used to link.  If the system
linker is used to link, then only linker options are safe to apply.

Makes sense. Now if the compiler is used for linking (which is
generally the case for my compilations), would it make sense to allow
unrecognized flags through?


Bob
======================================
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/






reply via email to

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