libreoffice: update to 24.8.4.2
[oi-userland.git] / components / runtime / openjdk-23 / patches / tribblix-flags-ldflags.patch
blobfc964776a1dce246cb3b897adb128c188c04b893
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 @@ -47,10 +47,14 @@
4 # Setup basic LDFLAGS
5 if test "x$TOOLCHAIN_TYPE" = xgcc; then
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 - # add --no-as-needed to disable default --as-needed link flag on some GCC toolchains
10 - BASIC_LDFLAGS="-Wl,-z,defs -Wl,-z,relro -Wl,-z,now -Wl,--no-as-needed -Wl,--exclude-libs,ALL"
11 + if test "x$OPENJDK_TARGET_OS" = xsolaris; then
12 + BASIC_LDFLAGS="$BASIC_LDFLAGS -Wl,-z,defs"
13 + else
14 + # add -z,relro (mark relocations read only) for all libs
15 + # add -z,now ("full relro" - more of the Global Offset Table GOT is marked read only)
16 + # add --no-as-needed to disable default --as-needed link flag on some GCC toolchains
17 + BASIC_LDFLAGS="-Wl,-z,defs -Wl,-z,relro -Wl,-z,now -Wl,--no-as-needed -Wl,--exclude-libs,ALL"
18 + fi
19 # Linux : remove unused code+data in link step
20 if test "x$ENABLE_LINKTIME_GC" = xtrue; then
21 if test "x$OPENJDK_TARGET_CPU" = xs390x; then