From: Peter O'Gorman Date: Thu, 8 Jul 2004 13:43:59 +0000 (+0000) Subject: * libtool.m4 [darwin](AC_PROG_LD_RELOAD_FLAG): Use $CC -nostdlib -r X-Git-Tag: release-1-5-8~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aeada785f6532ca099ced7764d852eea7e84b75b;p=thirdparty%2Flibtool.git * libtool.m4 [darwin](AC_PROG_LD_RELOAD_FLAG): Use $CC -nostdlib -r on darwin so that ld will not thin fat files. --- diff --git a/ChangeLog b/ChangeLog index bcdaa6a31..9542e82f1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2004-07-08 Peter O'Gorman + * 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 diff --git a/libtool.m4 b/libtool.m4 index a15c77a06..a6b0aab87 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -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