Mercurial > hg > graal-jvmci-8
comparison make/bsd/makefiles/gcc.make @ 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 | 4ca6dc0799b6 |
children | b00fc4dc6dc2 |
comparison
equal
deleted
inserted
replaced
17192:d0d76deeacb9 | 17193:9a980af18ec5 |
---|---|
379 # Linker flags | 379 # Linker flags |
380 | 380 |
381 # statically link libstdc++.so, work with gcc but ignored by g++ | 381 # statically link libstdc++.so, work with gcc but ignored by g++ |
382 STATIC_STDCXX = -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic | 382 STATIC_STDCXX = -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic |
383 | 383 |
384 # Ensure use libstdc++ on clang, not libc++ | |
385 ifeq ($(USE_CLANG), true) | |
386 LFLAGS += -stdlib=libstdc++ | |
387 endif | |
388 | |
384 ifeq ($(USE_CLANG),) | 389 ifeq ($(USE_CLANG),) |
385 # statically link libgcc and/or libgcc_s, libgcc does not exist before gcc-3.x. | 390 # statically link libgcc and/or libgcc_s, libgcc does not exist before gcc-3.x. |
386 ifneq ("${CC_VER_MAJOR}", "2") | 391 ifneq ("${CC_VER_MAJOR}", "2") |
387 STATIC_LIBGCC += -static-libgcc | 392 STATIC_LIBGCC += -static-libgcc |
388 endif | 393 endif |