summaryrefslogtreecommitdiff
path: root/community
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2013-01-06 13:00:09 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2013-01-06 13:00:09 -0500
commit8af0bb935f04e2e41cd3e58cbd87b80f308ed991 (patch)
tree0bc16bc50e8ddd82556d9785b2a44653ed9590b8 /community
parent8060829d57e359c471d5ce50bcea9770c905b71d (diff)
Fix build in john
Diffstat (limited to 'community')
-rw-r--r--community/john/PKGBUILD5
1 files changed, 5 insertions, 0 deletions
diff --git a/community/john/PKGBUILD b/community/john/PKGBUILD
index e7c33a05f..ecf2f92a5 100644
--- a/community/john/PKGBUILD
+++ b/community/john/PKGBUILD
@@ -39,6 +39,9 @@ build() {
sed -i 's|CFLAGS = -c -Wall -O2|CFLAGS = -c -Wall -O2 -march=x86-64 -DJOHN_SYSTEMWIDE=1|' Makefile
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|^LDFLAGS =\(.*\)|LDFLAGS =\1 -lm|' Makefile
else sed -i 's|CFLAGS = -c -Wall -O2|CFLAGS = -c -Wall -O2 -march=i686 -DJOHN_SYSTEMWIDE=1|' Makefile
fi
sed -i 's|LIBS = -ldes|LIBS = -ldes -Ldes|' Makefile
@@ -51,6 +54,8 @@ build() {
# build john
if [ "$CARCH" == "x86_64" ]; then
make linux-x86-64
+ elif [ "$CARCH" == "mips64el" ]; then
+ make generic
else make linux-x86-mmx
fi
}