commit: a6d64cf6d851ea48b45f6b4914a5a2930d0cedce
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 4 21:20:57 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Aug 4 21:20:57 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6d64cf6
eclass/tests: dot-a: pass --enable-deterministic-archives to strip
See 3c6009e3d48bcc80cfc714e4365ae24856114c5f.
Signed-off-by: Sam James <sam <AT> gentoo.org>
eclass/tests/dot-a.sh | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/eclass/tests/dot-a.sh b/eclass/tests/dot-a.sh
index e747965af80f..2ee526d2ba3e 100755
--- a/eclass/tests/dot-a.sh
+++ b/eclass/tests/dot-a.sh
@@ -428,7 +428,7 @@ test_strip_lto() {
$(tc-getCC) a.c -o a.o -c -flto -ggdb3 || return 1
$(tc-getAR) q foo.a a.o 2>/dev/null || return 1
cp foo.a foo.a.bak || return 1
- $(tc-getSTRIP) -p -d foo.a || return 1
+ $(tc-getSTRIP) --enable-deterministic-archives -p -d foo.a ||
return 1
# They should NOT differ after stripping because it
# can't be safely stripped without special arguments.
@@ -447,7 +447,7 @@ test_strip_lto() {
$(tc-getCC) a.c -o a.o -c -flto -ffat-lto-objects -ggdb3 ||
return 1
$(tc-getAR) q foo.a a.o 2>/dev/null || return 1
cp foo.a foo.a.bak || return 1
- $(tc-getSTRIP) -p -d foo.a || return 1
+ $(tc-getSTRIP) --enable-deterministic-archives -p -d foo.a ||
return 1
# They should differ after stripping because binutils
# (these days) can safely strip it without special arguments
@@ -526,7 +526,7 @@ test_strip_nolto() {
$(tc-getCC) a.c -o a.o -c -ggdb3 || return 1
$(tc-getAR) q foo.a a.o 2>/dev/null || return 1
cp foo.a foo.a.bak || return 1
- $(tc-getSTRIP) -p -d foo.a || return 1
+ $(tc-getSTRIP) --enable-deterministic-archives -p -d foo.a ||
return 1
# They should differ after stripping.
cmp -s foo.a foo.a.bak && return 1
@@ -550,7 +550,7 @@ test_strip_nolto() {
$(tc-getCC) a.c -o a.o -c -ggdb3 || return 1
$(tc-getAR) q foo.a a.o 2>/dev/null || return 1
cp foo.a foo.a.bak || return 1
- $(tc-getSTRIP) -p -d foo.a || return 1
+ $(tc-getSTRIP) --enable-deterministic-archives -p -d foo.a ||
return 1
# They should differ after stripping.
cmp -s foo.a foo.a.bak && return 1
@@ -577,7 +577,7 @@ test_strip_cross() {
# The test only makes sense with binutils[-multitarget], otherwise
# binutils will iterate over all available targets and just pick one
# rather than not-figuring-it-out and setting EM_NONE.
- if $(tc-getSTRIP) |& grep -q aarch ; then
+ if $(tc-getSTRIP) --enable-deterministic-archives |& grep -q aarch ;
then
return
fi
@@ -591,7 +591,7 @@ test_strip_cross() {
cp a.o a.o.bak || return 1
# We want this to error out with binutils[-multitarget]
# and we skip the test earlier on if binutils[multitarget].
- $(tc-getSTRIP) -p a.o &>/dev/null || return 0
+ $(tc-getSTRIP) --enable-deterministic-archives -p a.o
&>/dev/null || return 0
if file a.o |& grep "no machine" ; then
return 1