common/autoconf/generated-configure.sh

changeset 2496
f2715985987e
parent 2487
a013ce3462fc
child 2497
343c4ea489d5
equal deleted inserted replaced
2495:e8b56e0eaa7b 2496:f2715985987e
4377 # definitions. It is replaced with custom functionality when building 4377 # definitions. It is replaced with custom functionality when building
4378 # custom sources. 4378 # custom sources.
4379 #CUSTOM_AUTOCONF_INCLUDE 4379 #CUSTOM_AUTOCONF_INCLUDE
4380 4380
4381 # Do not change or remove the following line, it is needed for consistency checks: 4381 # Do not change or remove the following line, it is needed for consistency checks:
4382 DATE_WHEN_GENERATED=1580709484 4382 DATE_WHEN_GENERATED=1585090811
4383 4383
4384 ############################################################################### 4384 ###############################################################################
4385 # 4385 #
4386 # Initialization / Boot-strapping 4386 # Initialization / Boot-strapping
4387 # 4387 #
41234 # How to compile shared libraries. 41234 # How to compile shared libraries.
41235 # 41235 #
41236 41236
41237 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41237 if test "x$TOOLCHAIN_TYPE" = xgcc; then
41238 PICFLAG="-fPIC" 41238 PICFLAG="-fPIC"
41239 PIEFLAG="-fPIE"
41239 C_FLAG_REORDER='' 41240 C_FLAG_REORDER=''
41240 CXX_FLAG_REORDER='' 41241 CXX_FLAG_REORDER=''
41241 41242
41242 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41243 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
41243 # Linking is different on MacOSX 41244 # Linking is different on MacOSX
41254 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 41255 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1'
41255 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 41256 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1'
41256 fi 41257 fi
41257 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41258 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then
41258 PICFLAG="-KPIC" 41259 PICFLAG="-KPIC"
41260 PIEFLAG=""
41259 C_FLAG_REORDER='-xF' 41261 C_FLAG_REORDER='-xF'
41260 CXX_FLAG_REORDER='-xF' 41262 CXX_FLAG_REORDER='-xF'
41261 SHARED_LIBRARY_FLAGS="-G" 41263 SHARED_LIBRARY_FLAGS="-G"
41262 SET_EXECUTABLE_ORIGIN='-R\$$$$ORIGIN$1' 41264 SET_EXECUTABLE_ORIGIN='-R\$$$$ORIGIN$1'
41263 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 41265 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN"
41264 SET_SHARED_LIBRARY_NAME='' 41266 SET_SHARED_LIBRARY_NAME=''
41265 SET_SHARED_LIBRARY_MAPFILE='-M$1' 41267 SET_SHARED_LIBRARY_MAPFILE='-M$1'
41266 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41268 elif test "x$TOOLCHAIN_TYPE" = xxlc; then
41267 PICFLAG="-qpic=large" 41269 PICFLAG="-qpic=large"
41270 PIEFLAG=""
41268 C_FLAG_REORDER='' 41271 C_FLAG_REORDER=''
41269 CXX_FLAG_REORDER='' 41272 CXX_FLAG_REORDER=''
41270 SHARED_LIBRARY_FLAGS="-qmkshrobj" 41273 SHARED_LIBRARY_FLAGS="-qmkshrobj"
41271 SET_EXECUTABLE_ORIGIN="" 41274 SET_EXECUTABLE_ORIGIN=""
41272 SET_SHARED_LIBRARY_ORIGIN='' 41275 SET_SHARED_LIBRARY_ORIGIN=''
41273 SET_SHARED_LIBRARY_NAME='' 41276 SET_SHARED_LIBRARY_NAME=''
41274 SET_SHARED_LIBRARY_MAPFILE='' 41277 SET_SHARED_LIBRARY_MAPFILE=''
41275 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41278 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
41276 PICFLAG="" 41279 PICFLAG=""
41280 PIEFLAG=""
41277 C_FLAG_REORDER='' 41281 C_FLAG_REORDER=''
41278 CXX_FLAG_REORDER='' 41282 CXX_FLAG_REORDER=''
41279 SHARED_LIBRARY_FLAGS="-LD" 41283 SHARED_LIBRARY_FLAGS="-LD"
41280 SET_EXECUTABLE_ORIGIN='' 41284 SET_EXECUTABLE_ORIGIN=''
41281 SET_SHARED_LIBRARY_ORIGIN='' 41285 SET_SHARED_LIBRARY_ORIGIN=''
42086 # The shared libraries are compiled using the picflag. 42090 # The shared libraries are compiled using the picflag.
42087 CFLAGS_JDKLIB="$CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 42091 CFLAGS_JDKLIB="$CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA"
42088 CXXFLAGS_JDKLIB="$CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA " 42092 CXXFLAGS_JDKLIB="$CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA "
42089 42093
42090 # Executable flags 42094 # Executable flags
42091 CFLAGS_JDKEXE="$CCXXFLAGS_JDK $CFLAGS_JDK" 42095 CFLAGS_JDKEXE="$CCXXFLAGS_JDK $CFLAGS_JDK $PIEFLAG"
42092 CXXFLAGS_JDKEXE="$CCXXFLAGS_JDK $CXXFLAGS_JDK" 42096 CXXFLAGS_JDKEXE="$CCXXFLAGS_JDK $CXXFLAGS_JDK $PIEFLAG"
42093 42097
42094 42098
42095 42099
42096 42100
42097 42101
42169 fi 42173 fi
42170 42174
42171 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 42175 LDFLAGS_JDKEXE="${LDFLAGS_JDK}"
42172 if test "x$OPENJDK_TARGET_OS" = xlinux; then 42176 if test "x$OPENJDK_TARGET_OS" = xlinux; then
42173 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Xlinker --allow-shlib-undefined" 42177 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Xlinker --allow-shlib-undefined"
42178 fi
42179 if test "x$TOOLCHAIN_TYPE" = xgcc; then
42180 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -pie"
42174 fi 42181 fi
42175 fi 42182 fi
42176 42183
42177 42184
42178 42185

mercurial