From: Felix Fietkau Date: Thu, 12 Jan 2017 13:41:01 +0000 (+0100) Subject: cmake: properly pass host cflags/ldflags to the build X-Git-Tag: v17.01.0-rc1~111 X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fstaging%2Fchunkeey.git;a=commitdiff_plain;h=6f9011f089981776970ca3fb397c483e257f9dde cmake: properly pass host cflags/ldflags to the build This should hopefully fix build issues where libraries that we ship in tools/ were accidentally picked up from other places on the system, e.g. /usr/local Signed-off-by: Felix Fietkau --- diff --git a/tools/cmake/Makefile b/tools/cmake/Makefile index 08e5a69ecf..f3712391a6 100644 --- a/tools/cmake/Makefile +++ b/tools/cmake/Makefile @@ -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)