[patch] libltdl remove darwin hack

Andreas Tobler toa@pop.agri.ch
Sat Dec 20 14:44:00 GMT 2003

Hi all,

this patch has the same background as the one I just sent (boehm-gc 
remove hack for darwin).

We can remove the recently introduced fix from Michael since fixinclude 
will do it the right way.

If people want to build libgcj with the fsf gcc it will be officially 
supported with the 3.4 gcc. At the time it will be released it contains 
the proper fix for this header issue. So if one would build libgcj with 
an older gcc we have to point him to this issue and advise him to take 
an up-to-date gcc. (Note, this is only for darwin)

Is the below patch ok for main ?

Bootstrap & test, results posted saturday morning 


2003-12-20  Andreas Tobler  <a.tobler@schweiz.ch>

	* libltdl/ltdl.c (HAVE_DYLD): Remove ifdef conditional for
	darwin. Fixed by fixinclude now.

Index: libltdl/ltdl.c
RCS file: /cvs/gcc/gcc/libjava/libltdl/ltdl.c,v
retrieving revision 1.6
diff -u -r1.6 ltdl.c
--- libltdl/ltdl.c      18 Dec 2003 21:23:47 -0000      1.6
+++ libltdl/ltdl.c      20 Dec 2003 14:36:15 -0000
@@ -1584,13 +1584,7 @@

-# ifndef __private_extern__
-# define __private_extern__ extern
  #  include <mach-o/dyld.h>
-# undef __private_extern__
-# else
-#  include <mach-o/dyld.h>
-# endif
  #include <mach-o/getsect.h>

More information about the Java-patches mailing list