提交 d3f01e67 编写于 作者: A alvdavi

8233410: Better Build Scripting

Reviewed-by: andrew
上级 324c5157
...@@ -156,6 +156,7 @@ AC_DEFUN_ONCE([FLAGS_SETUP_COMPILER_FLAGS_FOR_LIBS], ...@@ -156,6 +156,7 @@ AC_DEFUN_ONCE([FLAGS_SETUP_COMPILER_FLAGS_FOR_LIBS],
if test "x$TOOLCHAIN_TYPE" = xgcc; then if test "x$TOOLCHAIN_TYPE" = xgcc; then
PICFLAG="-fPIC" PICFLAG="-fPIC"
PIEFLAG="-fPIE"
C_FLAG_REORDER='' C_FLAG_REORDER=''
CXX_FLAG_REORDER='' CXX_FLAG_REORDER=''
...@@ -176,6 +177,7 @@ AC_DEFUN_ONCE([FLAGS_SETUP_COMPILER_FLAGS_FOR_LIBS], ...@@ -176,6 +177,7 @@ AC_DEFUN_ONCE([FLAGS_SETUP_COMPILER_FLAGS_FOR_LIBS],
fi fi
elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then
PICFLAG="-KPIC" PICFLAG="-KPIC"
PIEFLAG=""
C_FLAG_REORDER='-xF' C_FLAG_REORDER='-xF'
CXX_FLAG_REORDER='-xF' CXX_FLAG_REORDER='-xF'
SHARED_LIBRARY_FLAGS="-G" SHARED_LIBRARY_FLAGS="-G"
...@@ -185,6 +187,7 @@ AC_DEFUN_ONCE([FLAGS_SETUP_COMPILER_FLAGS_FOR_LIBS], ...@@ -185,6 +187,7 @@ AC_DEFUN_ONCE([FLAGS_SETUP_COMPILER_FLAGS_FOR_LIBS],
SET_SHARED_LIBRARY_MAPFILE='-M[$]1' SET_SHARED_LIBRARY_MAPFILE='-M[$]1'
elif test "x$TOOLCHAIN_TYPE" = xxlc; then elif test "x$TOOLCHAIN_TYPE" = xxlc; then
PICFLAG="-qpic=large" PICFLAG="-qpic=large"
PIEFLAG=""
C_FLAG_REORDER='' C_FLAG_REORDER=''
CXX_FLAG_REORDER='' CXX_FLAG_REORDER=''
SHARED_LIBRARY_FLAGS="-qmkshrobj" SHARED_LIBRARY_FLAGS="-qmkshrobj"
...@@ -194,6 +197,7 @@ AC_DEFUN_ONCE([FLAGS_SETUP_COMPILER_FLAGS_FOR_LIBS], ...@@ -194,6 +197,7 @@ AC_DEFUN_ONCE([FLAGS_SETUP_COMPILER_FLAGS_FOR_LIBS],
SET_SHARED_LIBRARY_MAPFILE='' SET_SHARED_LIBRARY_MAPFILE=''
elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
PICFLAG="" PICFLAG=""
PIEFLAG=""
C_FLAG_REORDER='' C_FLAG_REORDER=''
CXX_FLAG_REORDER='' CXX_FLAG_REORDER=''
SHARED_LIBRARY_FLAGS="-LD" SHARED_LIBRARY_FLAGS="-LD"
...@@ -658,8 +662,8 @@ AC_DEFUN_ONCE([FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK], ...@@ -658,8 +662,8 @@ AC_DEFUN_ONCE([FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK],
CXXFLAGS_JDKLIB="$CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA " CXXFLAGS_JDKLIB="$CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA "
# Executable flags # Executable flags
CFLAGS_JDKEXE="$CCXXFLAGS_JDK $CFLAGS_JDK" CFLAGS_JDKEXE="$CCXXFLAGS_JDK $CFLAGS_JDK $PIEFLAG"
CXXFLAGS_JDKEXE="$CCXXFLAGS_JDK $CXXFLAGS_JDK" CXXFLAGS_JDKEXE="$CCXXFLAGS_JDK $CXXFLAGS_JDK $PIEFLAG"
AC_SUBST(CFLAGS_JDKLIB) AC_SUBST(CFLAGS_JDKLIB)
AC_SUBST(CFLAGS_JDKEXE) AC_SUBST(CFLAGS_JDKEXE)
...@@ -742,6 +746,9 @@ AC_DEFUN_ONCE([FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK], ...@@ -742,6 +746,9 @@ AC_DEFUN_ONCE([FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK],
if test "x$OPENJDK_TARGET_OS" = xlinux; then if test "x$OPENJDK_TARGET_OS" = xlinux; then
LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Xlinker --allow-shlib-undefined" LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Xlinker --allow-shlib-undefined"
fi fi
if test "x$TOOLCHAIN_TYPE" = xgcc; then
LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -pie"
fi
fi fi
AC_SUBST(LDFLAGS_JDKLIB) AC_SUBST(LDFLAGS_JDKLIB)
AC_SUBST(LDFLAGS_JDKEXE) AC_SUBST(LDFLAGS_JDKEXE)
......
...@@ -4379,7 +4379,7 @@ VS_SDK_PLATFORM_NAME_2017= ...@@ -4379,7 +4379,7 @@ VS_SDK_PLATFORM_NAME_2017=
#CUSTOM_AUTOCONF_INCLUDE #CUSTOM_AUTOCONF_INCLUDE
# Do not change or remove the following line, it is needed for consistency checks: # Do not change or remove the following line, it is needed for consistency checks:
DATE_WHEN_GENERATED=1580709484 DATE_WHEN_GENERATED=1585090811
############################################################################### ###############################################################################
# #
...@@ -41236,6 +41236,7 @@ $as_echo "$ac_cv_c_bigendian" >&6; } ...@@ -41236,6 +41236,7 @@ $as_echo "$ac_cv_c_bigendian" >&6; }
if test "x$TOOLCHAIN_TYPE" = xgcc; then if test "x$TOOLCHAIN_TYPE" = xgcc; then
PICFLAG="-fPIC" PICFLAG="-fPIC"
PIEFLAG="-fPIE"
C_FLAG_REORDER='' C_FLAG_REORDER=''
CXX_FLAG_REORDER='' CXX_FLAG_REORDER=''
...@@ -41256,6 +41257,7 @@ $as_echo "$ac_cv_c_bigendian" >&6; } ...@@ -41256,6 +41257,7 @@ $as_echo "$ac_cv_c_bigendian" >&6; }
fi fi
elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then
PICFLAG="-KPIC" PICFLAG="-KPIC"
PIEFLAG=""
C_FLAG_REORDER='-xF' C_FLAG_REORDER='-xF'
CXX_FLAG_REORDER='-xF' CXX_FLAG_REORDER='-xF'
SHARED_LIBRARY_FLAGS="-G" SHARED_LIBRARY_FLAGS="-G"
...@@ -41265,6 +41267,7 @@ $as_echo "$ac_cv_c_bigendian" >&6; } ...@@ -41265,6 +41267,7 @@ $as_echo "$ac_cv_c_bigendian" >&6; }
SET_SHARED_LIBRARY_MAPFILE='-M$1' SET_SHARED_LIBRARY_MAPFILE='-M$1'
elif test "x$TOOLCHAIN_TYPE" = xxlc; then elif test "x$TOOLCHAIN_TYPE" = xxlc; then
PICFLAG="-qpic=large" PICFLAG="-qpic=large"
PIEFLAG=""
C_FLAG_REORDER='' C_FLAG_REORDER=''
CXX_FLAG_REORDER='' CXX_FLAG_REORDER=''
SHARED_LIBRARY_FLAGS="-qmkshrobj" SHARED_LIBRARY_FLAGS="-qmkshrobj"
...@@ -41274,6 +41277,7 @@ $as_echo "$ac_cv_c_bigendian" >&6; } ...@@ -41274,6 +41277,7 @@ $as_echo "$ac_cv_c_bigendian" >&6; }
SET_SHARED_LIBRARY_MAPFILE='' SET_SHARED_LIBRARY_MAPFILE=''
elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
PICFLAG="" PICFLAG=""
PIEFLAG=""
C_FLAG_REORDER='' C_FLAG_REORDER=''
CXX_FLAG_REORDER='' CXX_FLAG_REORDER=''
SHARED_LIBRARY_FLAGS="-LD" SHARED_LIBRARY_FLAGS="-LD"
...@@ -42088,8 +42092,8 @@ $as_echo "$supports" >&6; } ...@@ -42088,8 +42092,8 @@ $as_echo "$supports" >&6; }
CXXFLAGS_JDKLIB="$CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA " CXXFLAGS_JDKLIB="$CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA "
# Executable flags # Executable flags
CFLAGS_JDKEXE="$CCXXFLAGS_JDK $CFLAGS_JDK" CFLAGS_JDKEXE="$CCXXFLAGS_JDK $CFLAGS_JDK $PIEFLAG"
CXXFLAGS_JDKEXE="$CCXXFLAGS_JDK $CXXFLAGS_JDK" CXXFLAGS_JDKEXE="$CCXXFLAGS_JDK $CXXFLAGS_JDK $PIEFLAG"
...@@ -42172,6 +42176,9 @@ $as_echo "$supports" >&6; } ...@@ -42172,6 +42176,9 @@ $as_echo "$supports" >&6; }
if test "x$OPENJDK_TARGET_OS" = xlinux; then if test "x$OPENJDK_TARGET_OS" = xlinux; then
LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Xlinker --allow-shlib-undefined" LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Xlinker --allow-shlib-undefined"
fi fi
if test "x$TOOLCHAIN_TYPE" = xgcc; then
LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -pie"
fi
fi fi
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册