From b84cdf621416f5aac9d7275ece8ca17fe15f472d Mon Sep 17 00:00:00 2001 From: Matteo Cypriani Date: Sun, 7 Sep 2014 11:05:58 -0400 Subject: [PATCH] Clear CFLAGS & LDFLAGS in tests Clear CFLAGS and LDFLAGS to build the tests, in case the main Makefile passes some flags that aren't handled by tcc (we are not compiling tcc here, we are using tcc to compile the tests). --- tests/Makefile | 4 ++++ tests/tests2/Makefile | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/tests/Makefile b/tests/Makefile index e3824ba9..e6c5660d 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -7,6 +7,10 @@ include $(TOP)/Makefile SRCDIR = $(top_srcdir)/tests VPATH = $(SRCDIR) $(top_srcdir) +# clear CFLAGS and LDFLAGS +CFLAGS := +LDFLAGS := + # what tests to run TESTS = \ hello-exe \ diff --git a/tests/tests2/Makefile b/tests/tests2/Makefile index bfd37e56..66d2f5a4 100644 --- a/tests/tests2/Makefile +++ b/tests/tests2/Makefile @@ -1,6 +1,10 @@ TOP = ../.. include $(TOP)/Makefile +# clear CFLAGS and LDFLAGS +CFLAGS := +LDFLAGS := + ifdef CONFIG_WIN32 TCCFLAGS = -B$(top_srcdir)/win32 -I$(top_srcdir)/include -L$(TOP) else