diff options
author | TizenOpenSource <tizenopensrc@samsung.com> | 2023-01-09 12:00:19 +0900 |
---|---|---|
committer | TizenOpenSource <tizenopensrc@samsung.com> | 2023-01-09 12:00:19 +0900 |
commit | 575596137b326da0fb261d4c19abe44c172b0cb7 (patch) | |
tree | d979d5d65b28cf65628a9c59be4396612d7c587e /tests/scripts/features/archives | |
parent | b11e2699c7ec42e6d2fc0f4c940f14e7c89b3974 (diff) | |
download | make-upstream.tar.gz make-upstream.tar.bz2 make-upstream.zip |
Imported Upstream version 4.4upstream/4.4upstream
Diffstat (limited to 'tests/scripts/features/archives')
-rw-r--r-- | tests/scripts/features/archives | 7 |
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"; } |