common/autoconf/generated-configure.sh

changeset 2248
f8f11c618554
parent 2069
940da49cc4da
child 2255
fd017ca43d8d
equal deleted inserted replaced
2242:5a80fc5b9697 2248:f8f11c618554
3774 3774
3775 3775
3776 3776
3777 3777
3778 # 3778 #
3779 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 3779 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3780 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3780 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3781 # 3781 #
3782 # This code is free software; you can redistribute it and/or modify it 3782 # This code is free software; you can redistribute it and/or modify it
3783 # under the terms of the GNU General Public License version 2 only, as 3783 # under the terms of the GNU General Public License version 2 only, as
3784 # published by the Free Software Foundation. Oracle designates this 3784 # published by the Free Software Foundation. Oracle designates this
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=1501170108 3915 DATE_WHEN_GENERATED=1517507181
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

mercurial