Use CFLAGS when compiling test code for C module tests

This is useful to pass e.g. CFLAGS=-g on make command line.
This commit is contained in:
Vadim Zeitlin 2016-04-13 18:08:55 +02:00
commit 795e3adb0d

View file

@ -1745,7 +1745,7 @@ c_cpp: $(SRCDIR_SRCS)
$(CXX_LDSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) $(CPP_DLLIBS) -o $(CLIBPREFIX)$(TARGET)$(C_SO)
c_compile: $(SRCDIR)$(RUNME).c
$(COMPILETOOL) $(CC) -o $(RUNME) -I. $< -L. -l$(TARGET)
$(COMPILETOOL) $(CC) $(CFLAGS) -o $(RUNME) -I. $< -L. -l$(TARGET)
# -----------------------------------------------------------------
# Run C example