toolchain/nasm: force ar and ranlib only on macOSX
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. On my Debian
system the nasm configure script selects gcc-ranlib and gcc-ar instead.
Fixes: d3a7587eb9
("toolchain/nasm: fix missing AR/RANLIB variables")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
79b38047b9
commit
e204717ef2
1 changed files with 5 additions and 3 deletions
|
@ -24,9 +24,11 @@ HOST_CONFIGURE_ARGS+= \
|
||||||
--disable-gdb \
|
--disable-gdb \
|
||||||
$(SOFT_FLOAT_CONFIG_OPTION) \
|
$(SOFT_FLOAT_CONFIG_OPTION) \
|
||||||
|
|
||||||
HOST_MAKE_FLAGS = \
|
ifeq ($(HOST_OS),Darwin)
|
||||||
AR=ar \
|
HOST_MAKE_FLAGS = \
|
||||||
RANLIB=ranlib
|
AR=ar \
|
||||||
|
RANLIB=ranlib
|
||||||
|
endif
|
||||||
|
|
||||||
define Host/Prepare
|
define Host/Prepare
|
||||||
$(call Host/Prepare/Default)
|
$(call Host/Prepare/Default)
|
||||||
|
|
Loading…
Reference in a new issue