]> granicus.if.org Git - handbrake/commitdiff
scripts: Enable sections and lto for nasm.
authorBradley Sepos <bradley@bradleysepos.com>
Thu, 28 Dec 2017 21:06:53 +0000 (16:06 -0500)
committerBradley Sepos <bradley@bradleysepos.com>
Wed, 10 Jan 2018 06:39:55 +0000 (01:39 -0500)
Pass a couple standard variables since make sometimes makes zero sense.

scripts/mac-toolchain-build

index 603e088d7cddad96d4c24ae1dde885fa985bdc12..b4f7a3eda8454fa1eba88afcedff91db8bc28892 100755 (executable)
@@ -134,9 +134,9 @@ printf "Building    [%02i/%02i] %s" "6" "${TOTAL}" "nasm 2.13.02"
 [[ "${SUDO}" != "" ]] && ${SUDO} -v
 tar -xf nasm-2.13.02.tar.bz2 >/dev/null 2>&1 || print_fail_and_exit
 cd nasm-2.13.02 >/dev/null 2>&1 || print_fail_and_exit
-./configure --prefix="${PREFIX}" >../nasm-2.13.02.log 2>&1 || print_fail_and_exit
-make --jobs="${MAKEJOBS}" >../nasm-2.13.02.log 2>&1 || print_fail_and_exit
-${SUDO} make install >../nasm-2.13.02.log 2>&1 || print_fail_and_exit
+./configure --prefix="${PREFIX}" --enable-sections --enable-lto >../nasm-2.13.02.log 2>&1 || print_fail_and_exit
+make --jobs="${MAKEJOBS}" AR=ar RANLIB=ranlib >>../nasm-2.13.02.log 2>&1 || print_fail_and_exit
+${SUDO} make install >>../nasm-2.13.02.log 2>&1 || print_fail_and_exit
 echo -en "${CREL}"
 
 # yasm