changeset 515:934aeb6514ae

Summary: Use g++ for dynmain linking of libjvm Reviewed By: Xiaobin Correct undefined symbols noted on OpenBSD using gcc 3.3.5 when using gcc to link libjvm combined with version scripts.
author kurt
date Tue, 13 Jan 2009 22:57:37 -0500
parents fbb14533a50b
children 36e8a25a0058
files make/bsd/makefiles/vm.make
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/make/bsd/makefiles/vm.make	Sun Jan 04 21:05:53 2009 -0800
+++ b/make/bsd/makefiles/vm.make	Tue Jan 13 22:57:37 2009 -0500
@@ -146,14 +146,14 @@
   ifeq ($(STATIC_CXX), true)
     LFLAGS_VM              += $(STATIC_LIBGCC)
     LIBS_VM                += $(STATIC_STDCXX)
+    LINK_VM                = $(LINK_LIB.c)
   else
-    LIBS_VM                += -lstdc++
+    LINK_VM                = $(LINK_LIB.CC)
   endif
 
   LIBS_VM                  += $(LIBS)
 endif
 
-LINK_VM = $(LINK_LIB.c)
 
 # rule for building precompiled header
 $(PRECOMPILED_HEADER): $(Precompiled_Files)