]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 [darwin](AC_PROG_LD_RELOAD_FLAG): Use $CC -nostdlib -r
authorPeter O'Gorman <peter@pogma.com>
Thu, 8 Jul 2004 13:43:59 +0000 (13:43 +0000)
committerPeter O'Gorman <peter@pogma.com>
Thu, 8 Jul 2004 13:43:59 +0000 (13:43 +0000)
on darwin so that ld will not thin fat files.

ChangeLog
libtool.m4

index bcdaa6a31c74cc0793858941cfc08829403cf3fd..9542e82f1cb1bdadc73fda635582720e711a10b3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2004-07-08  Peter O'Gorman  <peter@pogma.com>
 
+       * libtool.m4 [darwin](AC_PROG_LD_RELOAD_FLAG): Use $CC -nostdlib -r
+       on darwin so that ld will not thin fat files.
+
        * libtool.m4 [darwin]: Clean up darwin bits. Looks more normal now.
 
 2004-07-07  Brad <brad@comstyle.com>
index a15c77a0628989426964e65da354d2c47ad40193..a6b0aab87300fd4356951c11cedb58252e93ba7b 100644 (file)
@@ -2077,6 +2077,15 @@ case $reload_flag in
 *) reload_flag=" $reload_flag" ;;
 esac
 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'
+    else
+      reload_cmds='$LD$reload_flag -o $output$reload_objs'
+    fi
+    ;;
+esac
 ])# AC_PROG_LD_RELOAD_FLAG