summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo P2015-12-02 20:56:48 -0500
committerLeo P2015-12-02 20:56:48 -0500
commit2a03f12af0086894257f397826bc99c11f56886c (patch)
treefbce34d4d974dcdd506c8c8dfea3bb9bb3f03f0a
parent09eb6276d1a5ffdafb0e7517ba53749d48649f9d (diff)
downloadaur-2a03f12af0086894257f397826bc99c11f56886c.tar.gz
use mtune_generic if desired
-rw-r--r--PKGBUILD4
1 files changed, 4 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
index bc5f10a034b..9ccca0f9e49 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,6 +4,10 @@ _nginx_ver_stable=1.8.0
OPTIONS=(!strip debug) #nchan is still young, in case something goes wrong we want good coredumps
+if [[ ! -z $MTUNE_GENERIC ]]; then
+ CFLAGS="${CFLAGS//mtune=native/mtune=generic}"
+fi
+
_nginx_ver=$_nginx_ver_stable
_pkgname=nginx