Mercurial > hg > graal-jvmci-8
changeset 17193:9a980af18ec5
cherry-pick: JDK-8033898: undefined symbol when build hotspot with Xcode5
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 24 Sep 2014 09:50:56 +0200 |
parents | d0d76deeacb9 |
children | e92cf6db7a07 |
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 Tue Sep 23 19:23:46 2014 -0700 +++ b/make/bsd/makefiles/gcc.make Wed Sep 24 09:50:56 2014 +0200 @@ -381,6 +381,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")