toolchain/nasm: force ar and ranlib only on macOSX
[openwrt/openwrt.git] / toolchain / nasm / Makefile
index 8d07103..3116635 100644 (file)
@@ -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)