commit:     57250bdaec26224add7447e8d439d75960645737
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 25 23:12:22 2023 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Sat Nov 25 23:13:25 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57250bda

profiles, 23.0: drop global DT_RELR and enable it only on x86 and Power

Bug: https://bugs.gentoo.org/show_bug.cgi?id=818376
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 profiles/default/linux/amd64/23.0/make.defaults | 4 ++++
 profiles/default/linux/ppc/23.0/make.defaults   | 4 ++++
 profiles/default/linux/ppc64/23.0/make.defaults | 4 ++++
 profiles/default/linux/x86/23.0/make.defaults   | 4 ++++
 profiles/releases/23.0/make.defaults            | 4 ++--
 5 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/profiles/default/linux/amd64/23.0/make.defaults 
b/profiles/default/linux/amd64/23.0/make.defaults
new file mode 100644
index 000000000000..05f8f6a36542
--- /dev/null
+++ b/profiles/default/linux/amd64/23.0/make.defaults
@@ -0,0 +1,4 @@
+# Copyright 2023 Gentoo Authors.
+# Distributed under the terms of the GNU General Public License v2
+
+LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"

diff --git a/profiles/default/linux/ppc/23.0/make.defaults 
b/profiles/default/linux/ppc/23.0/make.defaults
new file mode 100644
index 000000000000..05f8f6a36542
--- /dev/null
+++ b/profiles/default/linux/ppc/23.0/make.defaults
@@ -0,0 +1,4 @@
+# Copyright 2023 Gentoo Authors.
+# Distributed under the terms of the GNU General Public License v2
+
+LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"

diff --git a/profiles/default/linux/ppc64/23.0/make.defaults 
b/profiles/default/linux/ppc64/23.0/make.defaults
new file mode 100644
index 000000000000..05f8f6a36542
--- /dev/null
+++ b/profiles/default/linux/ppc64/23.0/make.defaults
@@ -0,0 +1,4 @@
+# Copyright 2023 Gentoo Authors.
+# Distributed under the terms of the GNU General Public License v2
+
+LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"

diff --git a/profiles/default/linux/x86/23.0/make.defaults 
b/profiles/default/linux/x86/23.0/make.defaults
new file mode 100644
index 000000000000..05f8f6a36542
--- /dev/null
+++ b/profiles/default/linux/x86/23.0/make.defaults
@@ -0,0 +1,4 @@
+# Copyright 2023 Gentoo Authors.
+# Distributed under the terms of the GNU General Public License v2
+
+LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"

diff --git a/profiles/releases/23.0/make.defaults 
b/profiles/releases/23.0/make.defaults
index c802f3fa3409..67fcf7e034d8 100644
--- a/profiles/releases/23.0/make.defaults
+++ b/profiles/releases/23.0/make.defaults
@@ -13,8 +13,8 @@ USE="${USE} -cli"
 # bug 849875
 USE="${USE} -dri"
 
-# bug 818376
-LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
+# bug 818376 (only on specific arches)
+LDFLAGS="-Wl,-O1 -Wl,--as-needed"
 
 # copied from merged-usr feature
 # Mike Gilbert <[email protected]> (2022-08-31)

Reply via email to