include/cmake.mk: adjust for STAGING_DIR_HOST split
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48491
This commit is contained in:
parent
07160c774c
commit
7b5236de85
1 changed files with 3 additions and 3 deletions
|
@ -29,7 +29,7 @@ CMAKE_NM:=$(call cmake_tool,$(TARGET_NM))
|
||||||
CMAKE_RANLIB:=$(call cmake_tool,$(TARGET_RANLIB))
|
CMAKE_RANLIB:=$(call cmake_tool,$(TARGET_RANLIB))
|
||||||
|
|
||||||
CMAKE_FIND_ROOT_PATH:=$(STAGING_DIR);$(TOOLCHAIN_DIR)$(if $(CONFIG_EXTERNAL_TOOLCHAIN),;$(CONFIG_TOOLCHAIN_ROOT))
|
CMAKE_FIND_ROOT_PATH:=$(STAGING_DIR);$(TOOLCHAIN_DIR)$(if $(CONFIG_EXTERNAL_TOOLCHAIN),;$(CONFIG_TOOLCHAIN_ROOT))
|
||||||
CMAKE_HOST_FIND_ROOT_PATH:=$(STAGING_DIR_HOST)
|
CMAKE_HOST_FIND_ROOT_PATH:=$(STAGING_DIR)/host;$(STAGING_DIR_HOST)
|
||||||
CMAKE_SHARED_LDFLAGS:=-Wl,-Bsymbolic-functions
|
CMAKE_SHARED_LDFLAGS:=-Wl,-Bsymbolic-functions
|
||||||
|
|
||||||
define Build/Configure/Default
|
define Build/Configure/Default
|
||||||
|
@ -94,8 +94,8 @@ define Host/Configure/Default
|
||||||
-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
|
-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
|
||||||
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \
|
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \
|
||||||
-DCMAKE_STRIP=: \
|
-DCMAKE_STRIP=: \
|
||||||
-DCMAKE_INSTALL_PREFIX=$(STAGING_DIR_HOST) \
|
-DCMAKE_INSTALL_PREFIX=$(HOST_BUILD_PREFIX) \
|
||||||
-DCMAKE_PREFIX_PATH=$(STAGING_DIR_HOST) \
|
-DCMAKE_PREFIX_PATH=$(HOST_BUILD_PREFIX) \
|
||||||
-DCMAKE_SKIP_RPATH=TRUE \
|
-DCMAKE_SKIP_RPATH=TRUE \
|
||||||
$(CMAKE_HOST_OPTIONS) \
|
$(CMAKE_HOST_OPTIONS) \
|
||||||
$(CMAKE_SOURCE_DIR) \
|
$(CMAKE_SOURCE_DIR) \
|
||||||
|
|
Loading…
Reference in a new issue