aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/Makefile b/tests/Makefile
index d7e94b9..017f35c 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -39,8 +39,10 @@ libtcc_test$(EXESUF): libtcc_test.c ../$(LIBTCC)
$(CC) -o $@ $^ -I.. $(CFLAGS) $(LIBS) $(LINK_LIBTCC)
# test.ref - generate using gcc
+# copy only tcclib.h so GCC's stddef and stdarg will be used
test.ref: tcctest.c
- $(CC) -o tcctest.gcc $< -w $(CFLAGS) -I../include
+ cp -u ../include/tcclib.h .
+ $(CC) -o tcctest.gcc $< -I. -w $(CFLAGS)
./tcctest.gcc > $@
# auto test