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.
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],
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],