forked from OSchip/llvm-project
When on darwin, compiler_flags need to be percolated down to the 'gcc -r'
command line so that relinked .o files can be built universal. llvm-svn: 27837
This commit is contained in:
parent
cc7abc6c38
commit
b3305fb203
llvm/autoconf/m4
|
@ -2099,7 +2099,7 @@ reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
|||
case $host_os in
|
||||
darwin*)
|
||||
if test "$GCC" = yes; then
|
||||
reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
|
||||
reload_cmds='$CC -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
|
||||
else
|
||||
reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue