summaryrefslogtreecommitdiff
path: root/community
diff options
context:
space:
mode:
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
}