From 7184c705a6f58435e822ea9de28cfa06dcf7e46f Mon Sep 17 00:00:00 2001 From: Andreas Wacknitz <A.Wacknitz@gmx.de> Date: Sat, 27 Jan 2024 21:04:30 +0100 Subject: [PATCH] openjdk-22: update to patch 33 --- components/runtime/openjdk-22/patches/tribblix-flags-ldflags.patch | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/components/runtime/openjdk-22/patches/tribblix-flags-ldflags.patch b/components/runtime/openjdk-22/patches/tribblix-flags-ldflags.patch index 81cb214..fa5ae20 100644 --- a/components/runtime/openjdk-22/patches/tribblix-flags-ldflags.patch +++ b/components/runtime/openjdk-22/patches/tribblix-flags-ldflags.patch @@ -1,18 +1,20 @@ --- a/make/autoconf/flags-ldflags.m4~ Mon Apr 13 13:55:05 2020 +++ b/make/autoconf/flags-ldflags.m4 Mon Apr 13 14:10:29 2020 -@@ -58,9 +58,13 @@ +@@ -58,10 +58,14 @@ # Setup basic LDFLAGS if test "x$TOOLCHAIN_TYPE" = xgcc; then # Add -z,defs, to forbid undefined symbols in object files. - # add -z,relro (mark relocations read only) for all libs - # add -z,now ("full relro" - more of the Global Offset Table GOT is marked read only) -- BASIC_LDFLAGS="-Wl,-z,defs -Wl,-z,relro -Wl,-z,now" +- # add --no-as-needed to disable default --as-needed link flag on some GCC toolchains +- BASIC_LDFLAGS="-Wl,-z,defs -Wl,-z,relro -Wl,-z,now -Wl,--no-as-needed" + if test "x$OPENJDK_TARGET_OS" = xsolaris; then + BASIC_LDFLAGS="$BASIC_LDFLAGS -Wl,-z,defs" + else + # add relro (mark relocations read only) for all libs + # add -z,now ("full relro" - more of the Global Offset Table GOT is marked read only) -+ BASIC_LDFLAGS="-Wl,-z,defs -Wl,-z,relro -Wl,-z,now" ++ # add --no-as-needed to disable default --as-needed link flag on some GCC toolchains ++ BASIC_LDFLAGS="-Wl,-z,defs -Wl,-z,relro -Wl,-z,now -Wl,--no-as-needed" + fi # Linux : remove unused code+data in link step if test "x$ENABLE_LINKTIME_GC" = xtrue; then -- Gitblit v1.9.3