[OpenWrt-Devel] [PATCH] toolchain/nasm: force ar and ranlib only on macOSX

Hauke Mehrtens hauke at hauke-m.de
Sun Jul 8 06:52:09 EDT 2018


On Debian 9 nasm does not build when we force it to use ranlib, for
macOSX this is needed. Only force this on macOSX and not on any other
OS, this should fix the build of nasm on Linux systems.

Fixes: d3a7587eb95 ("toolchain/nasm: fix missing AR/RANLIB variables")
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 toolchain/nasm/Makefile | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/toolchain/nasm/Makefile b/toolchain/nasm/Makefile
index 8d071033c7..31166358fd 100644
--- a/toolchain/nasm/Makefile
+++ b/toolchain/nasm/Makefile
@@ -24,9 +24,11 @@ HOST_CONFIGURE_ARGS+= \
 		--disable-gdb \
 		$(SOFT_FLOAT_CONFIG_OPTION) \
 
-HOST_MAKE_FLAGS = \
-	AR=ar \
-	RANLIB=ranlib
+ifeq ($(HOST_OS),Darwin)
+	HOST_MAKE_FLAGS = \
+		AR=ar \
+		RANLIB=ranlib
+endif
 
 define Host/Prepare
 	$(call Host/Prepare/Default)
-- 
2.11.0


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list