projects
/
openwrt
/
staging
/
hauke.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b549880
)
ucode: fix build on macos
author
Felix Fietkau
<
[email protected]
>
Sat, 28 Oct 2023 12:58:46 +0000
(14:58 +0200)
committer
Jo-Philipp Wich
<
[email protected]
>
Thu, 2 Nov 2023 09:38:48 +0000
(10:38 +0100)
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 <
[email protected]
>
(cherry picked from commit
5eb8a21ba5fe5e87c03f0361d1db989189be9c6d
)
package/utils/ucode/Makefile
patch
|
blob
|
history
diff --git
a/package/utils/ucode/Makefile
b/package/utils/ucode/Makefile
index c2f0607341f5b98fc1f208e5abb54eb6bf83eb42..46112d31e88401ec5bcecb8133bbbb0201477f91 100644
(file)
--- 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 \