include/cmake.mk: search in $(STAGING_DIR)/usr instead of plain $(STAGING_DIR) to...
authorFelix Fietkau <nbd@openwrt.org>
Mon, 25 Jan 2016 15:49:49 +0000 (15:49 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 25 Jan 2016 15:49:49 +0000 (15:49 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48492

include/cmake.mk

index 0794c31f5c1bc7d2b945ad9ca4010f123abb03c2..a15cf3a671f49209f7e330d8d1c990c88ae8c3e7 100644 (file)
@@ -28,7 +28,7 @@ CMAKE_AR:=$(call cmake_tool,$(TARGET_AR))
 CMAKE_NM:=$(call cmake_tool,$(TARGET_NM))
 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)/usr;$(TOOLCHAIN_DIR)$(if $(CONFIG_EXTERNAL_TOOLCHAIN),;$(CONFIG_TOOLCHAIN_ROOT))
 CMAKE_HOST_FIND_ROOT_PATH:=$(STAGING_DIR)/host;$(STAGING_DIR_HOST)
 CMAKE_SHARED_LDFLAGS:=-Wl,-Bsymbolic-functions