]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* m4/libtool.m4 (AC_PROG_LD_RELOAD_FLAG): On darwin change the
authorPeter O'Gorman <peter@pogma.com>
Wed, 21 Jan 2004 14:16:34 +0000 (14:16 +0000)
committerPeter O'Gorman <peter@pogma.com>
Wed, 21 Jan 2004 14:16:34 +0000 (14:16 +0000)
reload_cmds to use $CC, otherwise ld will thin out any fat
objects.

ChangeLog
m4/libtool.m4

index 79535b0e1fa4bc461d046a474d027236d8e46271..b904506c1a1e77f75f85bf4f754322cff6f5ab17 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-01-21  Peter O'Gorman  <peter@pogma.com>
+
+       * m4/libtool.m4 (AC_PROG_LD_RELOAD_FLAG): On darwin change the
+       reload_cmds to use $CC, otherwise ld will thin out any fat 
+       objects.
+
 2004-01-18  Benjamin Reed  <ranger@befunk.com>
 
        * ltmain.in: Fix handling of frameworks in search paths.  Also
index d89dae819a983a04d3514b15812e0d2d9846991f..43e8a9d31a3f5d6b2425b1365ef156d3ea8b1d08 100644 (file)
@@ -2507,7 +2507,10 @@ case $reload_flag in
 *) reload_flag=" $reload_flag" ;;
 esac
 reload_cmds='$LD$reload_flag -o $output$reload_objs'
-
+case $host_os in
+  darwin*)
+    reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
+esac
 _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
 _LT_DECL([], [reload_cmds], [2])dnl
 ])# AC_PROG_LD_RELOAD_FLAG