[Top][All Lists]

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

Re: Passing flags with mode=link

From: Peter Rosin
Subject: Re: Passing flags with mode=link
Date: Sat, 17 May 2014 03:18:06 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

On 2014-04-17 21:38, Evgeny Grin wrote:
> Hi,
> I spend a few hours before I realized that libtool did not pass to linker 
> flags other than -L -l -Wl, and -Xlinker. It's totally confusing as in 
> compile mode libtool pass all flags to compiler.
> Currently there are no way to pass flags like -static-libgcc to linker except 
> editing makefile/configure.
> Common way of setting required flags by setting LDFLAGS before configure 
> didn't work because simple flag "-static-libgcc" will be ignored by libtool 
> and flag "-XCClinker -static-libgcc" will cause configure fail on GCC tests.
> Moreover, currently many configure tests can be incorrect as configure test 
> pure GCC/linker with LDFLAGS (and some flags can modify GCC/linker results) 
> but during "make" stage libtool filter many linker flags and linker works not 
> as configure expect.
> I suggest to pass all flags to linker, as in compile mode.

This is an FAQ:


reply via email to

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