changeset 767:b96db45c4913 cacao

2008-03-17 Gary Benson <gbenson@redhat.com> * patches/icedtea-static-libstdc++.patch: New file.
author Gary Benson <gbenson@redhat.com>
date Mon, 17 Mar 2008 08:48:42 -0400
parents 8367e022762a
children 2b413b0a984f
files ChangeLog patches/icedtea-static-libstdc++.patch
diffstat 2 files changed, 37 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Mar 17 07:03:05 2008 -0400
+++ b/ChangeLog	Mon Mar 17 08:48:42 2008 -0400
@@ -1,3 +1,7 @@
+2008-03-17  Gary Benson  <gbenson@redhat.com>
+
+	* patches/icedtea-static-libstdc++.patch: New file.
+
 2008-03-17  Gary Benson  <gbenson@redhat.com>
 
 	* platform_zero.in: New file.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/icedtea-static-libstdc++.patch	Mon Mar 17 08:48:42 2008 -0400
@@ -0,0 +1,33 @@
+diff -r e95eb2395f60 openjdk-ecj/hotspot/build/linux/makefiles/vm.make
+--- openjdk/hotspot/build/linux/makefiles/vm.make	Fri Nov 09 16:35:08 2007 +0000
++++ openjdk/hotspot/build/linux/makefiles/vm.make	Mon Nov 12 09:09:28 2007 +0000
+@@ -149,6 +149,12 @@
+ 	rm -f $@
+ 	cat $^ > $@
+ 
++ifeq ($(ZERO_LIBARCH), ppc64)
++  STATIC_CXX = false
++else
++  STATIC_CXX = true
++endif
++
+ ifeq ($(LINK_INTO),AOUT)
+   LIBJVM.o                 =
+   LIBJVM_MAPFILE           =
+@@ -162,8 +168,14 @@
+   # JVM is statically linked with libgcc[_s] and libstdc++; this is needed to
+   # get around library dependency and compatibility issues. Must use gcc not
+   # g++ to link.
+-  LFLAGS_VM                += $(STATIC_LIBGCC)
+-  LIBS_VM                  += $(STATIC_STDCXX) $(LIBS)
++  ifeq ($(STATIC_CXX), true)
++    LFLAGS_VM              += $(STATIC_LIBGCC)
++    LIBS_VM                += $(STATIC_STDCXX)
++  else
++    LIBS_VM                += -lstdc++
++  endif
++
++  LIBS_VM                  += $(LIBS)
+ endif
+ 
+ LINK_VM = $(LINK_LIB.c)