configure: Don't set user variables
[openocd.git] / common.mk
index f301c3a..dbacf19 100644 (file)
--- a/common.mk
+++ b/common.mk
@@ -1,6 +1,9 @@
 
 # common flags used in openocd build
-AM_CPPFLAGS = -I$(top_srcdir)/src \
+AM_CFLAGS = $(GCC_WARNINGS)
+
+AM_CPPFLAGS = $(HOST_CPPFLAGS)\
+                         -I$(top_srcdir)/src \
                          -I$(top_builddir)/src \
                          -I$(top_srcdir)/src/helper \
                          -DPKGDATADIR=\"$(pkgdatadir)\" \