cmake: properly pass host cflags/ldflags to the build
[openwrt/openwrt.git] / tools / cmake / Makefile
index 08e5a69ecfcf4b26b88f98b7715f8f0ac5706388..f3712391a6acf1127ceaffa4590b86f77a3a54dd 100644 (file)
@@ -24,7 +24,8 @@ HOST_CONFIGURE_CMD := \
        $(BASH) ./configure \
                $(if $(MAKE_JOBSERVER),--parallel="$(MAKE_JOBSERVER)")
 
-HOST_CONFIGURE_VARS :=
+HOST_CONFIGURE_VARS += \
+       CXXFLAGS="$(HOST_CFLAGS)"
 
 HOST_CONFIGURE_ARGS := \
        --prefix=$(STAGING_DIR_HOST)