diff options
author | Zack Weinberg <zackw@panix.com> | 2020-07-16 17:31:07 -0400 |
---|---|---|
committer | Zack Weinberg <zackw@panix.com> | 2020-07-16 17:31:07 -0400 |
commit | 7c08375081545e1eaf96461319ffec0a02e9f959 (patch) | |
tree | 4116e807647e1772ef7bed0ec0fd51d3ebac9f4d | |
parent | 71b5037ac652ed20bdf6624d915c657613a95f8c (diff) | |
download | autoconf-7c08375081545e1eaf96461319ffec0a02e9f959.tar.gz |
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.
-rw-r--r-- | tests/autotest.at | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/autotest.at b/tests/autotest.at index 7734277f..7d09ae37 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], |