openbsd-ports/security/aircrack-ng/patches/patch-src_common_h
pascal e051391d3c After feedback from kettenis@, we won't be defining -DPIC on PIE archs per
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@
2012-08-20 11:50:59 +00:00

13 lines
442 B
Plaintext

$OpenBSD: patch-src_common_h,v 1.2 2012/08/20 11:50:59 pascal Exp $
--- src/common.h.orig Mon Jul 23 18:27:36 2012
+++ src/common.h Mon Jul 23 18:27:57 2012
@@ -30,7 +30,7 @@
#define CPUID_SSE2_AVAILABLE 2
#define CPUID_NOTHING_AVAILABLE 0
-#if defined(__i386__) || defined(__x86_64__)
+#if (defined(__i386__) || defined(__x86_64__)) && !defined(__PIC__)
#define CPUID() shasse2_cpuid()
#else
#define CPUID() CPUID_NOTHING_AVAILABLE