From: Samuel Martin Date: Thu, 21 Aug 2014 20:45:17 +0000 (+0200) Subject: package/pkg-cmake.mk: set the {C, CXX, LD}FLAGS for host packages X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0b10e0cf573e732e7e723041d958f519e88524c4;p=buildroot.git package/pkg-cmake.mk: set the {C, CXX, LD}FLAGS for host packages Signed-off-by: Samuel Martin Signed-off-by: Peter Korsgaard --- diff --git a/package/pkg-cmake.mk b/package/pkg-cmake.mk index f5aefae12f..3655751775 100644 --- a/package/pkg-cmake.mk +++ b/package/pkg-cmake.mk @@ -86,6 +86,9 @@ define $(2)_CONFIGURE_CMDS -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY="BOTH" \ -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE="BOTH" \ -DCMAKE_INSTALL_PREFIX="$$(HOST_DIR)/usr" \ + -DCMAKE_C_FLAGS="$$(HOST_CFLAGS)" \ + -DCMAKE_CXX_FLAGS="$$(HOST_CXXFLAGS)" \ + -DCMAKE_EXE_LINKER_FLAGS="$$(HOST_LDFLAGS)" \ -DBUILD_TESTING=OFF \ $$($$(PKG)_CONF_OPT) \ )