aboutsummaryrefslogtreecommitdiff
path: root/package/utils
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2023-10-28 14:58:46 +0200
committerFelix Fietkau <nbd@nbd.name>2023-10-28 15:38:16 +0200
commit5eb8a21ba5fe5e87c03f0361d1db989189be9c6d (patch)
treeb4f4f8ea527b19ecc11983ddfc1d7473c6c29936 /package/utils
parentb5956700702b5649ec70bfa0d115af5b439ce6d1 (diff)
ucode: fix build on macos
Remove ABI version, since its format is not accepted by the linker. Enable rpath to avoid clash with system libraries Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/utils')
-rw-r--r--package/utils/ucode/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/package/utils/ucode/Makefile b/package/utils/ucode/Makefile
index c2f0607341..46112d31e8 100644
--- a/package/utils/ucode/Makefile
+++ b/package/utils/ucode/Makefile
@@ -25,8 +25,18 @@ include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/cmake.mk
CMAKE_OPTIONS += -DSOVERSION=$(PKG_ABI_VERSION)
+
+ifeq ($(HOST_OS),Darwin)
+ CMAKE_HOST_OPTIONS += \
+ -DCMAKE_SKIP_RPATH=FALSE \
+ -DCMAKE_MACOSX_RPATH=1 \
+ -DCMAKE_INSTALL_RPATH="${STAGING_DIR_HOSTPKG}/lib"
+else
+ CMAKE_HOST_OPTIONS += \
+ -DSOVERSION=$(PKG_ABI_VERSION)
+endif
+
CMAKE_HOST_OPTIONS += \
- -DSOVERSION=$(PKG_ABI_VERSION) \
-DFS_SUPPORT=ON \
-DMATH_SUPPORT=ON \
-DNL80211_SUPPORT=OFF \