]> git.ipfire.org Git - thirdparty/make.git/commit
[SV 62173] Fix archive tests for non-GNU systems
authorPaul Smith <psmith@gnu.org>
Sat, 23 Apr 2022 20:30:02 +0000 (16:30 -0400)
committerPaul Smith <psmith@gnu.org>
Sun, 24 Apr 2022 14:39:32 +0000 (10:39 -0400)
commit88ceff8b2f8303706daf0809b5a3e6af7ba4822e
treeef899efac9b3b57da6bf07f733abce106d203347
parent9755d4c09cc927256a057bd8bca3708f19ff1e8f
[SV 62173] Fix archive tests for non-GNU systems

Original patch from Dmitry Goncharov <dgoncharov@users.sf.net>

Fix the ar flags to match the default values in make.  If the
U option is supported, add it to the end not the beginning,
since ARFLAGS now starts with a "-".

* tests/test_driver.pl: Add defaults for global variables.
(get_osname): Preserve $osname if it's set from $^O
* tests/scripts/features/archive: Set the default arflags.
If "U" is available add it to the end of the flags.
tests/scripts/features/archives
tests/test_driver.pl