e051391d3c
default. Garbage collect the patches that dealt with these issues, and use the builtin define __PIC__ to detect if we're PIE/PIC. ok naddy@
22 lines
790 B
Plaintext
22 lines
790 B
Plaintext
$OpenBSD: patch-src_aircrack-ng_c,v 1.2 2012/08/20 11:50:59 pascal Exp $
|
|
--- src/aircrack-ng.c.orig Fri Apr 9 16:50:14 2010
|
|
+++ src/aircrack-ng.c Mon Jul 23 18:31:48 2012
|
|
@@ -3852,7 +3852,7 @@ int crack_wpa_thread( void *arg )
|
|
int i, j, len, slen;
|
|
int nparallel = 1;
|
|
|
|
-#if defined(__i386__) || defined(__x86_64__)
|
|
+#if (defined(__i386__) || defined(__x86_64__)) && !defined(__PIC__)
|
|
// Check for SSE2, with SSE2 the algorithm works with 4 keys
|
|
if (shasse2_cpuid()>=2)
|
|
nparallel = 4;
|
|
@@ -4626,7 +4626,7 @@ int main( int argc, char *argv[] )
|
|
|
|
case 'u' :
|
|
printf("Nb CPU detected: %d ", cpu_count);
|
|
-#if defined(__i386__) || defined(__x86_64__)
|
|
+#if (defined(__i386__) || defined(__x86_64__)) && !defined(__PIC__)
|
|
unused = shasse2_cpuid();
|
|
|
|
if (unused == 1) {
|