summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatti Niemenmaa2018-02-27 09:22:32 +0200
committerMatti Niemenmaa2018-02-27 09:23:55 +0200
commit8d8b6c56652133277e788c48214db55d86416b2b (patch)
tree7603a6d73e55dd387db181f25e99fb3716438c35
parent8f90e358ed4fce9ccf3b587aea40ee343d0ee6ea (diff)
downloadaur-8d8b6c56652133277e788c48214db55d86416b2b.tar.gz
Check sse2/ssse3 from $CFLAGS instead of cpuinfo
-rw-r--r--PKGBUILD4
1 files changed, 2 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 34924643c5b..42eb89579db 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -32,8 +32,8 @@ prepare() {
build() {
cd "$srcdir/$pkgname"
OPTFLAGS=$CFLAGS
- { grep \^flags /proc/cpuinfo | fgrep -qw ssse3 && OPTFLAGS+=" -mssse3 -DARCH_MIN_SSSE3"; } ||
- { grep \^flags /proc/cpuinfo | fgrep -qw sse2 && OPTFLAGS+=" -msse2 -DARCH_MIN_SSE2"; }
+ { gcc $CFLAGS -dM -E - </dev/null | fgrep -qw __SSSE3__ && OPTFLAGS+=" -DARCH_MIN_SSSE3"; } ||
+ { gcc $CFLAGS -dM -E - </dev/null | fgrep -qw __SSE2__ && OPTFLAGS+=" -DARCH_MIN_SSE2"; }
export LDFLAGS="$LDFLAGS -Wl,-Bsymbolic"
make liblazyusf.{a,so} OPTFLAGS="$OPTFLAGS -Irsp_hle/msvc-compat"
}