From 0b10e0cf573e732e7e723041d958f519e88524c4 Mon Sep 17 00:00:00 2001 From: Samuel Martin Date: Thu, 21 Aug 2014 22:45:17 +0200 Subject: [PATCH] package/pkg-cmake.mk: set the {C, CXX, LD}FLAGS for host packages Signed-off-by: Samuel Martin Signed-off-by: Peter Korsgaard --- package/pkg-cmake.mk | 3 +++ 1 file changed, 3 insertions(+) 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) \ ) -- 2.30.2