diff --git a/build.sh b/build.sh index c8f39409..a66753eb 100755 --- a/build.sh +++ b/build.sh @@ -54,6 +54,9 @@ case ${TARGET} in OS=linux export HOST_CFLAGS="-fcommon" EXTRA_CFLAGS+=" -fcommon" + if [[ ${TARGET} =~ "aarch64-*" ]] ; then + EXTRA_CFLAGS="-mno-outline-atomics" + fi ;; *-netbsd*) OS=netbsd @@ -69,9 +72,6 @@ case ${TARGET} in export HOST_CFLAGS="-Wno-error-implicit-function-declaration" EXTRA_AFLAGS="-mmacosx-version-min=10.7.0" ;; -aarch64-linux*) - EXTRA_CFLAGS="-mno-outline-atomics" - ;; *) OS=unknown esac