# HG changeset patch # User henryjen # Date 1393401544 28800 # Tue Feb 25 23:59:04 2014 -0800 # Node ID 1bce96baca75fa643995ee3fb5f5e2a18669b048 # Parent 80b39937b791f72aef1eabd5b919036a24d4d350 8033898: undefined symbol when build hotspot with Xcode5 Reviewed-by: diff --git a/make/bsd/makefiles/gcc.make b/make/bsd/makefiles/gcc.make --- a/make/bsd/makefiles/gcc.make +++ b/make/bsd/makefiles/gcc.make @@ -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")