< prev index next >

common/autoconf/flags.m4

Print this page




 623       LDFLAGS_JDK="$LDFLAGS_JDK -safeseh"
 624     fi
 625     # TODO: make -debug optional "--disable-full-debug-symbols"
 626     LDFLAGS_JDK="$LDFLAGS_JDK -debug"
 627     LDFLAGS_JDKLIB="${LDFLAGS_JDK} -dll -libpath:${JDK_OUTPUTDIR}/lib"
 628     LDFLAGS_JDKLIB_SUFFIX=""
 629     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
 630       LDFLAGS_STACK_SIZE=1048576
 631     else
 632       LDFLAGS_STACK_SIZE=327680
 633     fi
 634     LDFLAGS_JDKEXE="${LDFLAGS_JDK} /STACK:$LDFLAGS_STACK_SIZE"
 635   else
 636     if test "x$TOOLCHAIN_TYPE" = xgcc; then
 637       # If this is a --hash-style=gnu system, use --hash-style=both, why?
 638       # We have previously set HAS_GNU_HASH if this is the case
 639       if test -n "$HAS_GNU_HASH"; then
 640         LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker --hash-style=both "
 641       fi
 642       if test "x$OPENJDK_TARGET_OS" = xlinux; then
 643         # And since we now know that the linker is gnu, then add -z defs, to forbid
 644         # undefined symbols in object files.
 645         LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -z -Xlinker defs"

 646         if test "x$DEBUG_LEVEL" = "xrelease"; then
 647           # When building release libraries, tell the linker optimize them.
 648           # Should this be supplied to the OSS linker as well?
 649           LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -O1"
 650         fi
 651       fi
 652     fi
 653 
 654     if test "x$TOOLCHAIN_TYPE" = xsolstudio; then
 655       LDFLAGS_JDK="$LDFLAGS_JDK -z defs -xildoff -ztext"
 656       LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK -norunpath -xnolib"
 657     fi
 658 
 659     LDFLAGS_JDKLIB="${LDFLAGS_JDK} $SHARED_LIBRARY_FLAGS \
 660         -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}"
 661 
 662     # On some platforms (mac) the linker warns about non existing -L dirs.
 663     # Add server first if available. Linking aginst client does not always produce the same results.
 664     # Only add client dir if client is being built. Add minimal (note not minimal1) if only building minimal1.
 665     # Default to server for other variants.




 623       LDFLAGS_JDK="$LDFLAGS_JDK -safeseh"
 624     fi
 625     # TODO: make -debug optional "--disable-full-debug-symbols"
 626     LDFLAGS_JDK="$LDFLAGS_JDK -debug"
 627     LDFLAGS_JDKLIB="${LDFLAGS_JDK} -dll -libpath:${JDK_OUTPUTDIR}/lib"
 628     LDFLAGS_JDKLIB_SUFFIX=""
 629     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
 630       LDFLAGS_STACK_SIZE=1048576
 631     else
 632       LDFLAGS_STACK_SIZE=327680
 633     fi
 634     LDFLAGS_JDKEXE="${LDFLAGS_JDK} /STACK:$LDFLAGS_STACK_SIZE"
 635   else
 636     if test "x$TOOLCHAIN_TYPE" = xgcc; then
 637       # If this is a --hash-style=gnu system, use --hash-style=both, why?
 638       # We have previously set HAS_GNU_HASH if this is the case
 639       if test -n "$HAS_GNU_HASH"; then
 640         LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker --hash-style=both "
 641       fi
 642       if test "x$OPENJDK_TARGET_OS" = xlinux; then
 643         # And since we now know that the linker is gnu, then add:
 644         #   -z defs, to forbid undefined symbols in object files
 645         #   -z noexecstack, to mark stack regions as non-executable
 646         LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -z -Xlinker defs -Xlinker -z -Xlinker noexecstack"
 647         if test "x$DEBUG_LEVEL" = "xrelease"; then
 648           # When building release libraries, tell the linker optimize them.
 649           # Should this be supplied to the OSS linker as well?
 650           LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -O1"
 651         fi
 652       fi
 653     fi
 654 
 655     if test "x$TOOLCHAIN_TYPE" = xsolstudio; then
 656       LDFLAGS_JDK="$LDFLAGS_JDK -z defs -xildoff -ztext"
 657       LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK -norunpath -xnolib"
 658     fi
 659 
 660     LDFLAGS_JDKLIB="${LDFLAGS_JDK} $SHARED_LIBRARY_FLAGS \
 661         -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}"
 662 
 663     # On some platforms (mac) the linker warns about non existing -L dirs.
 664     # Add server first if available. Linking aginst client does not always produce the same results.
 665     # Only add client dir if client is being built. Add minimal (note not minimal1) if only building minimal1.
 666     # Default to server for other variants.


< prev index next >