diff options
author | Felix Fietkau <nbd@nbd.name> | 2021-11-02 18:08:47 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2021-11-04 16:55:04 +0100 |
commit | a6a9f9be278e718f3f8a5cb7640dd8035cc802b9 (patch) | |
tree | 24dc024ac531b339336c86379dab6a0cacebbb6d | |
parent | 1cead21e8b3506317ba5576ffe1733e31da1f155 (diff) | |
download | upstream-a6a9f9be278e718f3f8a5cb7640dd8035cc802b9.tar.gz upstream-a6a9f9be278e718f3f8a5cb7640dd8035cc802b9.tar.bz2 upstream-a6a9f9be278e718f3f8a5cb7640dd8035cc802b9.zip |
include/cmake.mk: add support for overriding the host install prefix
Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r-- | include/cmake.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/cmake.mk b/include/cmake.mk index 3318468c90..b9a7e36dee 100644 --- a/include/cmake.mk +++ b/include/cmake.mk @@ -52,6 +52,7 @@ CMAKE_RANLIB:=$(call cmake_tool,$(TARGET_RANLIB)) CMAKE_FIND_ROOT_PATH:=$(STAGING_DIR)/usr;$(TOOLCHAIN_DIR)$(if $(CONFIG_EXTERNAL_TOOLCHAIN),;$(CONFIG_TOOLCHAIN_ROOT)) CMAKE_HOST_FIND_ROOT_PATH:=$(STAGING_DIR)/host;$(STAGING_DIR_HOSTPKG);$(STAGING_DIR_HOST) CMAKE_SHARED_LDFLAGS:=-Wl,-Bsymbolic-functions +CMAKE_HOST_INSTALL_PREFIX = $(HOST_BUILD_PREFIX) ifeq ($(HOST_USE_NINJA),1) CMAKE_HOST_OPTIONS += -DCMAKE_GENERATOR="Ninja" @@ -157,7 +158,7 @@ define Host/Configure/Default -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \ -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \ -DCMAKE_STRIP=: \ - -DCMAKE_INSTALL_PREFIX=$(HOST_BUILD_PREFIX) \ + -DCMAKE_INSTALL_PREFIX=$(CMAKE_HOST_INSTALL_PREFIX) \ -DCMAKE_PREFIX_PATH=$(HOST_BUILD_PREFIX) \ -DCMAKE_SKIP_RPATH=TRUE \ -DCMAKE_INSTALL_LIBDIR=lib \ |