summaryrefslogtreecommitdiff
path: root/tests/scripts/features/archives
diff options
context:
space:
mode:
Diffstat (limited to 'tests/scripts/features/archives')
-rw-r--r--tests/scripts/features/archives7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/scripts/features/archives b/tests/scripts/features/archives
index dcd38e5..809bf21 100644
--- a/tests/scripts/features/archives
+++ b/tests/scripts/features/archives
@@ -35,16 +35,17 @@ my $ar = get_config('AR') || 'ar';
my $redir = '2>&1';
$redir = '' if $osname eq 'VMS';
-my $arflags = 'rv';
+# This is the value from src/default.c
+my $arflags = $osname eq 'aix' ? '-Xany -rv' : '-rv';
my $arvar = "AR=$ar";
# Newer versions of binutils can be built with --enable-deterministic-archives
# which forces all timestamps (among other things) to always be 0, defeating
# GNU make's archive support. See if ar supports the U option to disable it.
unlink('libxx.a');
-$_ = `$ar U$arflags libxx.a a1.o $redir`;
+$_ = `$ar ${arflags}U libxx.a a1.o $redir`;
if ($? == 0) {
- $arflags = 'Urv';
+ $arflags = "${arflags}U";
$arvar = "$arvar ARFLAGS=$arflags";
}