summaryrefslogtreecommitdiffstats
path: root/scripts/mac-toolchain-build
diff options
context:
space:
mode:
authorBradley Sepos <[email protected]>2017-12-28 16:06:53 -0500
committerBradley Sepos <[email protected]>2018-01-10 01:39:55 -0500
commit00da2c7ef77da4c65c764113d4b6cfda281736d3 (patch)
treecd550fd148ec0f652cd3a114a794595b32ca5889 /scripts/mac-toolchain-build
parenta230d06074defae003bf68df419907d08c64a16b (diff)
scripts: Enable sections and lto for nasm.
Pass a couple standard variables since make sometimes makes zero sense.
Diffstat (limited to 'scripts/mac-toolchain-build')
-rwxr-xr-xscripts/mac-toolchain-build6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/mac-toolchain-build b/scripts/mac-toolchain-build
index 603e088d7..b4f7a3eda 100755
--- a/scripts/mac-toolchain-build
+++ b/scripts/mac-toolchain-build
@@ -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