libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Libtool-patches Digest, Vol 1, Issue 528


From: Robert Boehne
Subject: Re: Libtool-patches Digest, Vol 1, Issue 528
Date: Tue, 31 Dec 2002 19:58:48 -0600

I didn't have the patch in my box, or I might have looked at it. ;)
Regardless, I think the current solution is better but I do agree
that ltmain.in needs your addition as well.  Attached is the
patch trimmed down to the ltmain.in change.  I'm going to approve
it and check it in. :)

Robert

Benjamin Reed wrote:
> 
> On Tuesday, December 31, 2002, at 08:22 PM, Ben Hines wrote:
> 
> > Benjamin Reed has an updated libtool patch which uses the new
> > -single_module flag on darwin with the new gcc, i'll let him submit
> > that..
> 
> It's pretty hackish, though (and likely brittle).  It currently runs
> gcc -v and parses Apple's build number out of it, so I wouldn't be
> comfortable submitting it without figuring out a better way to do it...
> 
> _______________________________________________
> Libtool-patches mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/libtool-patches
? COPYING
? INSTALL
? autom4te.cache
? install-sh
? libtool-ar-nameclash.patch
? ltmain-darwin.patch
? missing
? mkinstalldirs
? cdemo/autom4te.cache
? demo/autom4te.cache
? demo/hell_static
? depdemo/autom4te.cache
? depdemo/depdemo_static
? f77demo/autom4te.cache
? f77demo/cprogram
? f77demo/fprogram
? libltdl/autom4te.cache
? libltdl/config-h.in
? mdemo/autom4te.cache
? mdemo/mdemo_static
? mdemo/output.txt
? pdemo/autom4te.cache
? pdemo/hell_static
? tagdemo/autom4te.cache
? tests/demo-shrext.test
Index: ChangeLog
===================================================================
RCS file: /cvsroot/libtool/libtool/ChangeLog,v
retrieving revision 1.1174
diff -u -r1.1174 ChangeLog
--- ChangeLog   31 Dec 2002 05:46:43 -0000      1.1174
+++ ChangeLog   1 Jan 2003 01:52:39 -0000
@@ -1,3 +1,8 @@
+2002-12-31  Benjamin Reed  <address@hidden>
+
+       * ltmain.in [darwin]: disable lazy linking, needed
+       to resolve C++ global constructor issues
+
 2002-12-30  Ralph Schleicher  <address@hidden>
 
        Rework by Robert Boehne <address@hidden>
Index: ltmain.in
===================================================================
RCS file: /cvsroot/libtool/libtool/ltmain.in,v
retrieving revision 1.317
diff -u -r1.317 ltmain.in
--- ltmain.in   31 Dec 2002 05:43:24 -0000      1.317
+++ ltmain.in   1 Jan 2003 01:52:45 -0000
@@ -3831,6 +3831,14 @@
        ;;
       esac
 
+      case $host in
+      *darwin*)
+        # Don't allow lazy linking, it breaks C++ global constructors
+        compile_command="$compile_command ${wl}-bind_at_load"
+        finalize_command="$finalize_command ${wl}-bind_at_load"
+        ;;
+      esac
+
       compile_command="$compile_command $compile_deplibs"
       finalize_command="$finalize_command $finalize_deplibs"
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]