]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 (AC_LIBTOOL_LANG_CXX_CONFIG): Copy the section
authorRobert Boehne <rboehne@gnu.org>
Tue, 31 Dec 2002 05:19:00 +0000 (05:19 +0000)
committerRobert Boehne <rboehne@gnu.org>
Tue, 31 Dec 2002 05:19:00 +0000 (05:19 +0000)
for Darwin from AC_LIBTOOL_PROG_LD_SHLIBS so that the CXX
tag doesn't use the g++ defaults for the OS X compiler.

ChangeLog
libtool.m4

index e2ef704192255d959ca1953b03a17407f14ae766..5baf59263cd81dd5523e3f9a58950ec4ee10b76e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-12-30  Robert Boehne  <rboehne@gnu.org>
+       * libtool.m4 (AC_LIBTOOL_LANG_CXX_CONFIG): Copy the section
+       for Darwin from AC_LIBTOOL_PROG_LD_SHLIBS so that the CXX
+       tag doesn't use the g++ defaults for the OS X compiler.
+
 2002-12-30  Albert Chin-A-Young <china@thewrittenword.com>
 
        * libtool.m4: Sync methods used to detect GNU ld.
index b7bd409d3bcce6603863b67bf4f9728006fffda5..0cf1753eecf78a0494810955338451e0aee0243b 100644 (file)
@@ -2717,6 +2717,28 @@ case $host_os in
     fi
        ;;
 
+  darwin* | rhapsody*)
+    case "$host_os" in
+      rhapsody* | darwin1.[[012]])
+      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
+      ;;
+    *) # Darwin 1.3 on
+      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
+      ;;
+    esac
+
+    # FIXME: Relying on posixy $() will cause problems for
+    #        cross-compilation, but unfortunately the echo tests do not
+    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
+    #         `"' quotes if we put them in here... so don't!
+    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
+    # We need to add '_' to the symbols in $export_symbols first
+    #_LT_AC_TAGVAR(archive_expsym_cmds, $1)="$_LT_AC_TAGVAR(archive_cmds, $1)"' && strip -s $export_symbols'
+    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
+    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
+    ;;
+
   dgux*)
     case $cc_basename in
       ec++)