]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
tests/autotest.at: don’t use suffix rules to generate executables
authorZack Weinberg <zackw@panix.com>
Thu, 16 Jul 2020 21:31:07 +0000 (17:31 -0400)
committerZack Weinberg <zackw@panix.com>
Thu, 16 Jul 2020 21:31:07 +0000 (17:31 -0400)
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.

tests/autotest.at

index 7734277f021feb840201e3f306cc72cd24c009b9..7d09ae37c5909741e9b696816ed44c621e059637 100644 (file)
@@ -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],