mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-15 16:44:36 +02:00
8304871: Use default visibility for static library builds
Reviewed-by: erikj, dholmes
This commit is contained in:
parent
77811fa39b
commit
f0dba218ac
1 changed files with 1 additions and 1 deletions
|
@ -637,7 +637,7 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
|
||||||
STATIC_LIBS_CFLAGS="-DSTATIC_BUILD=1"
|
STATIC_LIBS_CFLAGS="-DSTATIC_BUILD=1"
|
||||||
if test "x$TOOLCHAIN_TYPE" = xgcc || test "x$TOOLCHAIN_TYPE" = xclang; then
|
if test "x$TOOLCHAIN_TYPE" = xgcc || test "x$TOOLCHAIN_TYPE" = xclang; then
|
||||||
STATIC_LIBS_CFLAGS="$STATIC_LIBS_CFLAGS -ffunction-sections -fdata-sections \
|
STATIC_LIBS_CFLAGS="$STATIC_LIBS_CFLAGS -ffunction-sections -fdata-sections \
|
||||||
-DJNIEXPORT='__attribute__((visibility(\"hidden\")))'"
|
-DJNIEXPORT='__attribute__((visibility(\"default\")))'"
|
||||||
else
|
else
|
||||||
STATIC_LIBS_CFLAGS="$STATIC_LIBS_CFLAGS -DJNIEXPORT="
|
STATIC_LIBS_CFLAGS="$STATIC_LIBS_CFLAGS -DJNIEXPORT="
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue