When on darwin, compiler_flags need to be percolated down to the 'gcc -r'
authorChris Lattner <sabre@nondot.org>
Wed, 19 Apr 2006 18:34:41 +0000 (18:34 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 19 Apr 2006 18:34:41 +0000 (18:34 +0000)
command line so that relinked .o files can be built universal.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27837 91177308-0d34-0410-b5e6-96231b3b80d8

autoconf/m4/libtool.m4

index dfb6e0f62e83648154c01f0c11cbd117959426b6..f4260d0b4f4c013571ed964c0765af79625c56b4 100644 (file)
@@ -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