8205197: Never default to using libc++ on Linux
Summary: Let the toolchain choose the standard library by default
Reviewed-by: tbell, erikj, gziemski
--- a/make/autoconf/flags-ldflags.m4 Fri Jun 22 23:18:07 2018 +0000
+++ b/make/autoconf/flags-ldflags.m4 Fri Jun 22 17:36:03 2018 -0700
@@ -81,7 +81,7 @@
elif test "x$TOOLCHAIN_TYPE" = xclang; then
BASIC_LDFLAGS_JVM_ONLY="-mno-omit-leaf-frame-pointer -mstack-alignment=16 \
- -stdlib=libc++ -fPIC"
+ -fPIC"
elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then
BASIC_LDFLAGS="-Wl,-z,defs"