X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/e57549e01f9f465fe421e019f6ea9e31b4082329..a7af297702a4a8fe26af3a079ac4c2f619d2e0c0:/include/cmake.mk diff --git a/include/cmake.mk b/include/cmake.mk index 22255acf5..6c5b5eb4f 100644 --- a/include/cmake.mk +++ b/include/cmake.mk @@ -40,11 +40,12 @@ define Build/Configure/Default -DCMAKE_MODULE_LINKER_FLAGS="$(TARGET_LDFLAGS)" \ -DCMAKE_SHARED_LINKER_FLAGS="$(TARGET_LDFLAGS)" \ -DCMAKE_FIND_ROOT_PATH=$(STAGING_DIR) \ - -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=$(STAGING_DIR_HOST) \ - -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=$(STAGING_DIR) \ - -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=$(STAGING_DIR) \ + -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=BOTH \ + -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \ + -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \ -DCMAKE_STRIP=: \ -DCMAKE_INSTALL_PREFIX=/usr \ + -DDL_LIBRARY=$(STAGING_DIR) \ $(CMAKE_OPTIONS) \ . \ )