4303 # definitions. It is replaced with custom functionality when building |
4303 # definitions. It is replaced with custom functionality when building |
4304 # custom sources. |
4304 # custom sources. |
4305 #CUSTOM_AUTOCONF_INCLUDE |
4305 #CUSTOM_AUTOCONF_INCLUDE |
4306 |
4306 |
4307 # Do not change or remove the following line, it is needed for consistency checks: |
4307 # Do not change or remove the following line, it is needed for consistency checks: |
4308 DATE_WHEN_GENERATED=1527191982 |
4308 DATE_WHEN_GENERATED=1527649790 |
4309 |
4309 |
4310 ############################################################################### |
4310 ############################################################################### |
4311 # |
4311 # |
4312 # Initialization / Boot-strapping |
4312 # Initialization / Boot-strapping |
4313 # |
4313 # |
41652 # We have previously set HAS_GNU_HASH if this is the case |
41652 # We have previously set HAS_GNU_HASH if this is the case |
41653 if test -n "$HAS_GNU_HASH"; then |
41653 if test -n "$HAS_GNU_HASH"; then |
41654 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker --hash-style=both " |
41654 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker --hash-style=both " |
41655 fi |
41655 fi |
41656 if test "x$OPENJDK_TARGET_OS" = xlinux; then |
41656 if test "x$OPENJDK_TARGET_OS" = xlinux; then |
41657 # And since we now know that the linker is gnu, then add -z defs, to forbid |
41657 # And since we now know that the linker is gnu, then add: |
41658 # undefined symbols in object files. |
41658 # -z defs, to forbid undefined symbols in object files |
41659 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -z -Xlinker defs" |
41659 # -z noexecstack, to mark stack regions as non-executable |
|
41660 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -z -Xlinker defs -Xlinker -z -Xlinker noexecstack" |
41660 if test "x$DEBUG_LEVEL" = "xrelease"; then |
41661 if test "x$DEBUG_LEVEL" = "xrelease"; then |
41661 # When building release libraries, tell the linker optimize them. |
41662 # When building release libraries, tell the linker optimize them. |
41662 # Should this be supplied to the OSS linker as well? |
41663 # Should this be supplied to the OSS linker as well? |
41663 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -O1" |
41664 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -O1" |
41664 fi |
41665 fi |