From: Zack Weinberg Date: Thu, 16 Jul 2020 21:31:07 +0000 (-0400) Subject: tests/autotest.at: don’t use suffix rules to generate executables X-Git-Tag: v2.69c~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c08375081545e1eaf96461319ffec0a02e9f959;p=thirdparty%2Fautoconf.git tests/autotest.at: don’t use suffix rules to generate executables In two tests, when @EXEEXT@ is empty, we were generating Makefiles containing suffix rules with only one explicit suffix, e.g. .o: $(CC) -o $@ $^ Solaris 10’s ‘dmake’ does not understand this as a rule to create ‘foo’ from ‘foo.o’. That’s not the point of the tests, so use ordinary per-rule commands to link the executables in these tests instead. Partially addresses #110267. --- diff --git a/tests/autotest.at b/tests/autotest.at index 7734277f0..7d09ae37c 100644 --- a/tests/autotest.at +++ b/tests/autotest.at @@ -1913,13 +1913,13 @@ AT_DATA([Makefile.in], CFLAGS=@CFLAGS@ testprog@EXEEXT@: testprog.o + $(CC) -o testprog@EXEEXT@ testprog.o + testprog.o: testprog.c -.SUFFIXES: .c .o @EXEEXT@ +.SUFFIXES: .c .o .c.o: $(CC) -c $< -.o@EXEEXT@: - $(CC) -o $@ $^ ]]) AT_CHECK_AT_PREP([suite], @@ -1974,13 +1974,13 @@ AT_DATA([Makefile.in], CFLAGS=@CFLAGS@ testprog@EXEEXT@: testprog.o + $(CC) -o testprog@EXEEXT@ testprog.o + testprog.o: testprog.c -.SUFFIXES: .c .o @EXEEXT@ +.SUFFIXES: .c .o .c.o: $(CC) -c $< -.o@EXEEXT@: - $(CC) -o $@ $^ ]]) AT_CHECK_AT_PREP([suite],