LDFLAGS setting

Giorgos Keramidas keramida at ceid.upatras.gr
Tue Feb 21 04:26:08 PST 2006


On 2006-02-21 10:23, Divacky Roman <xdivac02 at stud.fit.vutbr.cz> wrote:
>On Mon, Feb 20, 2006 at 07:42:50PM +0200, Giorgos Keramidas wrote:
>>On 2006-02-20 18:27, Divacky Roman <xdivac02 at stud.fit.vutbr.cz> wrote:
>>> hi
>>>
>>> is is possible to set global LDFLAGS as its possible with CFLAGS?
>>
>> Yes, but why would you want to do this?  It is very likely to create
>> dependencies with libraries that are not really used by all programs.
>
> I was just curious. man ld promises some optimizations and thats what I am
> interested in: LDFLAGS=-O1 --sort-common -z combreloc --relax
>
> but this doesnt seem to work with autoconf :(

That's a bug in the specific autoconf-based build infrastructure you are
using LDFLAGS with.

Autotools-based build processes are notorious for being complex, very
convoluted and stupidly riddled with assumptions about what the current
environment looks or works like.  It's not very surprising that you
found something that ignores LDFLAGS in the enrivonment :(



More information about the freebsd-hackers mailing list