changeset 6041:2dd7abe7b841

8033898: undefined symbol when build hotspot with Xcode5 Reviewed-by: sla, dholmes
author henryjen
date Tue, 25 Feb 2014 23:59:04 -0800
parents 80b39937b791
children 2328dac1da27
files make/bsd/makefiles/gcc.make
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/make/bsd/makefiles/gcc.make	Fri Feb 21 08:09:15 2014 -0800
+++ b/make/bsd/makefiles/gcc.make	Tue Feb 25 23:59:04 2014 -0800
@@ -364,6 +364,11 @@
 # statically link libstdc++.so, work with gcc but ignored by g++
 STATIC_STDCXX = -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic
 
+# Ensure use libstdc++ on clang, not libc++
+ifeq ($(USE_CLANG), true)
+  LFLAGS += -stdlib=libstdc++
+endif
+
 ifeq ($(USE_CLANG),)
   # statically link libgcc and/or libgcc_s, libgcc does not exist before gcc-3.x.
   ifneq ("${CC_VER_MAJOR}", "2")