3910 # definitions. It is replaced with custom functionality when building |
3910 # definitions. It is replaced with custom functionality when building |
3911 # custom sources. |
3911 # custom sources. |
3912 #CUSTOM_AUTOCONF_INCLUDE |
3912 #CUSTOM_AUTOCONF_INCLUDE |
3913 |
3913 |
3914 # Do not change or remove the following line, it is needed for consistency checks: |
3914 # Do not change or remove the following line, it is needed for consistency checks: |
3915 DATE_WHEN_GENERATED=1500960571 |
3915 DATE_WHEN_GENERATED=1515659624 |
3916 |
3916 |
3917 ############################################################################### |
3917 ############################################################################### |
3918 # |
3918 # |
3919 # Initialization / Boot-strapping |
3919 # Initialization / Boot-strapping |
3920 # |
3920 # |
30176 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` |
30176 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` |
30177 if test -n "$HAS_GNU_HASH"; then |
30177 if test -n "$HAS_GNU_HASH"; then |
30178 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker --hash-style=both " |
30178 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker --hash-style=both " |
30179 fi |
30179 fi |
30180 if test "x$OPENJDK_TARGET_OS" = xlinux; then |
30180 if test "x$OPENJDK_TARGET_OS" = xlinux; then |
30181 # And since we now know that the linker is gnu, then add -z defs, to forbid |
30181 # And since we now know that the linker is gnu, then add: |
30182 # undefined symbols in object files. |
30182 # -z defs, to forbid undefined symbols in object files |
30183 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -z -Xlinker defs" |
30183 # -z noexecstack, to mark stack regions as non-executable |
|
30184 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -z -Xlinker defs -Xlinker -z -Xlinker noexecstack" |
30184 if test "x$DEBUG_LEVEL" = "xrelease"; then |
30185 if test "x$DEBUG_LEVEL" = "xrelease"; then |
30185 # When building release libraries, tell the linker optimize them. |
30186 # When building release libraries, tell the linker optimize them. |
30186 # Should this be supplied to the OSS linker as well? |
30187 # Should this be supplied to the OSS linker as well? |
30187 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -O1" |
30188 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -O1" |
30188 fi |
30189 fi |