diff options
author | Michał Masłowski <mtjm@mtjm.eu> | 2013-01-28 18:13:11 +0100 |
---|---|---|
committer | Michał Masłowski <mtjm@mtjm.eu> | 2013-01-28 18:13:11 +0100 |
commit | 4271567f09adb2f9c7995fdbee811becdaba5525 (patch) | |
tree | 79a5ac7fa768fde011750130dcd880c8d2701246 /community | |
parent | 01346da4de50d9eda2660653fcaae6c1abfaa28a (diff) |
Don't pass -march=loongson2f in PKGBUILDs.
This needs a proper fix of not replacing user's CFLAGS and fixing the
issues leading to this workaround.
Diffstat (limited to 'community')
-rw-r--r-- | community/john/PKGBUILD | 2 | ||||
-rw-r--r-- | community/toolame/PKGBUILD | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/community/john/PKGBUILD b/community/john/PKGBUILD index ecf2f92a5..43470d592 100644 --- a/community/john/PKGBUILD +++ b/community/john/PKGBUILD @@ -40,7 +40,7 @@ build() { sed -i 's|^LDFLAGS =\(.*\)|LDFLAGS =\1 -lm|' Makefile sed -i -e 's|-m486||g' Makefile elif [ "$CARCH" == "mips64el" ]; then - sed -i 's|CFLAGS = -c -Wall -O2|CFLAGS = -c -Wall -O2 -march=loongson2f -DJOHN_SYSTEMWIDE=1|' Makefile + sed -i 's|CFLAGS = -c -Wall -O2|CFLAGS = -c -Wall -O2 -march=mips3 -mtune=loongson2f -DJOHN_SYSTEMWIDE=1|' Makefile #sed -i 's|^LDFLAGS =\(.*\)|LDFLAGS =\1 -lm|' Makefile else sed -i 's|CFLAGS = -c -Wall -O2|CFLAGS = -c -Wall -O2 -march=i686 -DJOHN_SYSTEMWIDE=1|' Makefile fi diff --git a/community/toolame/PKGBUILD b/community/toolame/PKGBUILD index e824c46b5..a9545a94c 100644 --- a/community/toolame/PKGBUILD +++ b/community/toolame/PKGBUILD @@ -20,7 +20,7 @@ build() { cd $srcdir/$pkgname-$pkgver patch -p0 < ../toolame-02l.patch [ "$CARCH" = "x86_64" ] && sed -i "s|-march=i686|-march=x86-64|g" Makefile - [ "$CARCH" = "mips64el" ] && sed -i "s|-march=i686|-march=loongson2f|g" Makefile + [ "$CARCH" = "mips64el" ] && sed -i "s|-march=i686|-march=mips3 -mtune=loongson2f|g" Makefile make install -D -m755 toolame $pkgdir/usr/bin/toolame } |