[LLVMdev] configure testing for linker flags using llvm-gcc

Mike Stump mrs at apple.com
Mon Mar 10 15:21:32 PDT 2008


On Mar 9, 2008, at 10:11 AM, Török Edwin wrote:
> I tried to build glibc-2.7 with llvm-gcc4.2.
> First problem I hit is that glibc tests for -z relro linker flag  
> support
> using this command:
> ${CC-cc} -v --help 2>&1|grep "z relro"
>
> This test fails for llvm-gcc since it doesn't output linker's --help.

I suspect there is an APPLE LOCAL changes that avoid running ld with -- 
help, as darwin's ld doesn't have that flag.  That code should be  
conditionalized better for darwin.  So, that'd be a llvm-gcc-4.2 bug.



More information about the llvm-dev mailing list