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).
This commit is contained in:
parent
178275dc0c
commit
b84cdf6214
2 changed files with 8 additions and 0 deletions
|
@ -7,6 +7,10 @@ include $(TOP)/Makefile
|
||||||
SRCDIR = $(top_srcdir)/tests
|
SRCDIR = $(top_srcdir)/tests
|
||||||
VPATH = $(SRCDIR) $(top_srcdir)
|
VPATH = $(SRCDIR) $(top_srcdir)
|
||||||
|
|
||||||
|
# clear CFLAGS and LDFLAGS
|
||||||
|
CFLAGS :=
|
||||||
|
LDFLAGS :=
|
||||||
|
|
||||||
# what tests to run
|
# what tests to run
|
||||||
TESTS = \
|
TESTS = \
|
||||||
hello-exe \
|
hello-exe \
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
TOP = ../..
|
TOP = ../..
|
||||||
include $(TOP)/Makefile
|
include $(TOP)/Makefile
|
||||||
|
|
||||||
|
# clear CFLAGS and LDFLAGS
|
||||||
|
CFLAGS :=
|
||||||
|
LDFLAGS :=
|
||||||
|
|
||||||
ifdef CONFIG_WIN32
|
ifdef CONFIG_WIN32
|
||||||
TCCFLAGS = -B$(top_srcdir)/win32 -I$(top_srcdir)/include -L$(TOP)
|
TCCFLAGS = -B$(top_srcdir)/win32 -I$(top_srcdir)/include -L$(TOP)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue