Ticket #1167 (closed defect: fixed)
1.3.2b2 - libtool doesn't set whole_archive_flag_spec for convenience libs for Mac OS X
| Reported by: | kyngchaos@… | Owned by: | warmerdam |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | default | Version: | unspecified |
| Severity: | normal | Keywords: | |
| Cc: |
Description
whole_archive_flag_spec should be -all_load $convenience in Mac OS X (darwin). Without it linking in
static fat (Universal ppc/intel) libs fails because ar doesn't do fat libs. This patch should fix libtool
setup in configure (untesed, taken from older aclocal.m4):
--- libtool.m4.old 2006-04-25 12:26:14.000000000 -0500
+++ libtool.m4 2006-04-26 13:29:13.000000000 -0500
@@ -3039,7 +3039,7 @@
_LT_AC_TAGVAR(hardcode_direct, $1)=no
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
if test "$GXX" = yes ; then
@@ -5827,7 +5827,7 @@
_LT_AC_TAGVAR(hardcode_direct, $1)=no
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
if test "$GCC" = yes ; then
output_verbose_link_cmd='echo'
Change History
Note: See
TracTickets for help on using
tickets.
