|
From: | Peter O'Gorman |
Subject: | Re: allow specific flags through to the linker without modification |
Date: | Fri, 9 May 2003 08:18:04 +0900 |
On Friday, May 9, 2003, at 03:38 AM, Benjamin Reed wrote:
Boehne, Robert wrote:Peter,I think this should be doable with -XCompiler, -Xlinker and -XCClinker.You can pass link specific flags to the compiler driver using `-XCClinker flag' or pass linker flags with `-Wl,flag' and `-Xlinker flag'. You can also pass compile specific flags using `-Wc,flag' and `-Xcompiler flag'. The intent is to allow anything that a user might want to have on theFrom the manual:compiler driver's invocation to be possible. Can what you want to achieve be done this way?Perhaps there should at least be a patch to make libtool warn when it's ignoring options?
Indeed my only problem with it is that the behavior seems to have changed without warning, for darwin there are a lot of packages out there which just add "-framework Cocoa" etc to the Makefile when they detect darwin. libtool used to happily put this in the link line, now it does not, I got tired of telling people "use -Wl,-framework -Wl,foo".
A warning when libtool drops flags would also seem doable, let me look into it.
Peter
[Prev in Thread] | Current Thread | [Next in Thread] |