hashcat: make this build in all supported archs; close #3124

This commit is contained in:
Juan RP 2015-12-18 16:25:29 +01:00
parent c5df85b69f
commit 1c3d16bf53
2 changed files with 7 additions and 2 deletions

View file

@ -15,7 +15,7 @@ index 8c9c951..c2b53ed 100644
#include <termios.h>
#include <sys/ioctl.h>
+#define termios termio
+#define termio termios
#endif
#endif

View file

@ -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" ;;