* 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.
This commit is contained in:
Peter O'Gorman 2004-01-21 14:16:34 +00:00
parent de50d5cf48
commit e6c5a654ae
2 changed files with 10 additions and 1 deletions

View File

@ -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

5
m4/libtool.m4 vendored
View 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