[LLVMdev] CMake: Gold linker detection
Sumanth Gundapaneni
sgundapa at codeaurora.org
Wed Jan 28 09:44:13 PST 2015
My bad. I agree with you.
--Sumanth G
From: C Bergström [mailto:cbergstrom at pathscale.com]
Sent: Tuesday, January 27, 2015 10:16 PM
To: Sumanth Gundapaneni
Cc: llvmdev at cs.uiuc.edu; Rafael Ávila de Espíndola; Takumi NAKAMURA
Subject: Re: [LLVMdev] CMake: Gold linker detection
On Wed, Jan 28, 2015 at 7:00 AM, Sumanth Gundapaneni <sgundapa at codeaurora.org <mailto:sgundapa at codeaurora.org> > wrote:
I reacted as per my case. You need CFLAGS in order to what linker you might be using.
In case of clang, you can use “-fuse-ld” to control the invocation of linker.
In my opinion, it is not necessary to carry forward LDFLAGS unless you want to control specific parts of the linker.
Unless I'm mistaken typically LDFLAGS are passed like this. (I think you are mistaken)
${COMPILER} ${LDFLAGS}
ld ${LDFLAGS} # It doesn't mean this isn't also possible
Regardless if you're dealing with a cross compiler or whatever weird CFLAGS you have to pass. This is a linker issue and LDFLAGS are designed to deal precisely with that.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150128/00aee21a/attachment.html>
More information about the llvm-dev
mailing list