only set AS=nasm for the architectures that use it, instead of globally

tested on arm64 and amd64

sthen@ came up with the same diff
This commit is contained in:
phessler 2023-01-16 14:49:53 +00:00
parent 86f7f5e535
commit 31ff001baf

View File

@ -24,6 +24,7 @@ COMPILER_LANGS= c
.if ${MACHINE_ARCH} == "amd64"
BUILD_DEPENDS+= devel/nasm
CONFIGURE_ENV+= AS="nasm ${DEBUG}"
.endif
DEBUG_PACKAGES= ${BUILD_PACKAGES}
@ -31,8 +32,7 @@ DEBUG_PACKAGES= ${BUILD_PACKAGES}
SEPARATE_BUILD= Yes
USE_GMAKE= Yes
CONFIGURE_STYLE= simple
CONFIGURE_ENV= API=${LIBx264_VERSION} \
AS="nasm ${DEBUG}"
CONFIGURE_ENV+= API=${LIBx264_VERSION}
CONFIGURE_ARGS+=--prefix=${PREFIX} \
--bashcompletionsdir=${LOCALBASE}/share/bash-completion/completions \
--enable-bashcompletion \