From 8af0bb935f04e2e41cd3e58cbd87b80f308ed991 Mon Sep 17 00:00:00 2001 From: Omar Vega Ramos Date: Sun, 6 Jan 2013 13:00:09 -0500 Subject: Fix build in john --- community/john/PKGBUILD | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'community') 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 } -- cgit v1.2.3-54-g00ecf