summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatti Niemenmaa2015-08-15 11:51:03 +0300
committerMatti Niemenmaa2015-08-15 11:51:03 +0300
commit8e65e0daf04e79d181993933cbab8eeeb6245e63 (patch)
treee3375b032b314bf10d4aab2547f91feb816c0897
parentedfdac0e6723a390b623aa3960fb782a25ab9be3 (diff)
downloadaur-8e65e0daf04e79d181993933cbab8eeeb6245e63.tar.gz
Set -msse2/ssse3 when defining ARCH_MIN_SSE2/SSSE3
Required if -march is not set appropriately in makepkg.conf, as it isn't by default.
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD9
2 files changed, 6 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f55ab614b6d..d0b4f04ab33 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = lazyusf2-git
pkgdesc = Library for decoding Nintendo 64 Sound Format files using Mupen64plus
pkgver = r65.679f709
- pkgrel = 2
+ pkgrel = 3
url = https://bitbucket.org/kode54/lazyusf2
arch = i686
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 924dc368ccc..9759a8b262f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=lazyusf2-git
pkgver=r65.679f709
-pkgrel=2
+pkgrel=3
pkgdesc="Library for decoding Nintendo 64 Sound Format files using Mupen64plus"
arch=(i686 x86_64)
url='https://bitbucket.org/kode54/lazyusf2'
@@ -32,9 +32,10 @@ prepare() {
build() {
cd "$srcdir/$pkgname"
ROPTS="-c -O3 -I."
- { grep \^flags /proc/cpuinfo | fgrep -qw ssse3 && ROPTS+=" -DARCH_MIN_SSSE3"; } ||
- { grep \^flags /proc/cpuinfo | fgrep -qw sse2 && ROPTS+=" -DARCH_MIN_SSE2"; }
- make liblazyusf.{a,so} CFLAGS="$CFLAGS -fPIC" ROPTS="$ROPTS"
+ CFLAGS="$CFLAGS -fPIC"
+ { grep \^flags /proc/cpuinfo | fgrep -qw ssse3 && CFLAGS+=" -mssse3" && ROPTS+=" -DARCH_MIN_SSSE3"; } ||
+ { grep \^flags /proc/cpuinfo | fgrep -qw sse2 && CFLAGS+=" -msse2" && ROPTS+=" -DARCH_MIN_SSE2"; }
+ make liblazyusf.{a,so} CFLAGS="$CFLAGS" ROPTS="$ROPTS"
}
package() {