From 1c3d16bf5315926f645232186745a90f04f5de39 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 18 Dec 2015 16:25:29 +0100 Subject: [PATCH] hashcat: make this build in all supported archs; close #3124 --- srcpkgs/hashcat/patches/musl.patch | 2 +- srcpkgs/hashcat/template | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/srcpkgs/hashcat/patches/musl.patch b/srcpkgs/hashcat/patches/musl.patch index c80a696c7d0..826fccf5797 100644 --- a/srcpkgs/hashcat/patches/musl.patch +++ b/srcpkgs/hashcat/patches/musl.patch @@ -15,7 +15,7 @@ index 8c9c951..c2b53ed 100644 #include #include -+#define termios termio ++#define termio termios #endif #endif diff --git a/srcpkgs/hashcat/template b/srcpkgs/hashcat/template index 9318fff1de8..b4353035b14 100644 --- a/srcpkgs/hashcat/template +++ b/srcpkgs/hashcat/template @@ -11,8 +11,13 @@ distfiles="https://github.com/hashcat/hashcat/archive/${version}.tar.gz" checksum=6325e6d75a4df3485adec00f74e5887326809c15ed31bfe74a12b62943245444 only_for_archs="x86_64 i686 x86_64-musl i686-musl" +case "$XBPS_TARGET_MACHINE" in + i686*) nopie=yes;; +esac + do_build() { - CFLAGS+=" -Iinclude/ -fomit-frame-pointer -funroll-loops -s" + + CFLAGS+=" -Iinclude/ -fomit-frame-pointer -funroll-loops" case "$XBPS_TARGET_MACHINE" in x86_64*) target="posix64" ;; i686*) target="posix32" ;;