package/pkg-cmake.mk: set the {C, CXX, LD}FLAGS for host packages
Signed-off-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
8f6f21444f
commit
0b10e0cf57
@ -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) \
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user