perl/Test-Simple: update to 1.302205
[oi-userland.git] / components / runtime / openjdk-11 / patches / tribblix-flags-ldflags.patch
blob4737639c9482d80ea29ef4ef14a7147b6f287e8a
1 --- a/make/autoconf/flags-ldflags.m4~ Mon Apr 13 13:55:05 2020
2 +++ b/make/autoconf/flags-ldflags.m4 Mon Apr 13 14:10:29 2020
3 @@ -70,9 +70,12 @@
4 fi
6 # Add -z defs, to forbid undefined symbols in object files.
7 - # add -z,relro (mark relocations read only) for all libs
8 - # add -z,now ("full relro" - more of the Global Offset Table GOT is marked read only)
9 - BASIC_LDFLAGS="$BASIC_LDFLAGS -Wl,-z,defs -Wl,-z,relro -Wl,-z,now"
10 + if test "x$OPENJDK_TARGET_OS" = xsolaris; then
11 + BASIC_LDFLAGS="$BASIC_LDFLAGS -Wl,-z,defs"
12 + else
13 + # add relro (mark relocations read only) for all libs
14 + BASIC_LDFLAGS="$BASIC_LDFLAGS -Wl,-z,defs -Wl,-z,relro -Wl,-z,now"
15 + fi
16 # s390x : remove unused code+data in link step
17 if test "x$OPENJDK_TARGET_CPU" = xs390x; then
18 BASIC_LDFLAGS="$BASIC_LDFLAGS -Wl,--gc-sections"