Recover the lost diff between 1.5 and 1.6.
[oota-llvm.git] / autoconf / m4 / libtool.m4
index 1782998b87ce2f5fc51fe3f2417e37632f10f29b..420d43010f9de7b1cd7bd7234a1af68c991a227a 100644 (file)
@@ -2234,7 +2234,7 @@ reload_cmds='$LD$reload_flag -o $output$reload_objs'
 case $host_os in
   darwin*)
     if test "$GCC" = yes; then
-      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
+      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
     else
       reload_cmds='$LD$reload_flag -o $output$reload_objs'
     fi