]> git.ipfire.org Git - thirdparty/make.git/commitdiff
* tests/scripts/features/archives: Use the configured compiler for CC
authorPaul Smith <psmith@gnu.org>
Sun, 15 Jan 2023 15:27:53 +0000 (10:27 -0500)
committerPaul Smith <psmith@gnu.org>
Sun, 15 Jan 2023 21:35:57 +0000 (16:35 -0500)
tests/scripts/features/archives

index 4e3434b57cd11292b798c455b545db6ed9a9024d..a098d22252addbe8c9738ff10ebf7aafc2a55174 100644 (file)
@@ -254,12 +254,15 @@ create_file('a.c', 'int i;');
 create_file('b.c', 'int j;');
 utouch(-20, 'a.c', 'b.c');
 
+my $cc = get_config('CC') || 'cc';
+my $vars = "CC=$cc $arvar";
+
 run_make_test(q!
 mylib.a: mylib.a(a.o b.o)
 (%): % ;
 %.a: ; $(AR) $(ARFLAGS) $@ $?
 %.o : %.c ; @echo Compile $<; $(COMPILE.c) -o $@ $<
-!, $arvar, "Compile a.c\nCompile b.c\n$ar $arflags mylib.a a.o b.o\n${create2}rm b.o a.o");
+!, $vars, "Compile a.c\nCompile b.c\n$ar $arflags mylib.a a.o b.o\n${create2}rm b.o a.o");
 
 run_make_test(undef, $arvar, "#MAKE#: 'mylib.a' is up to date.");