2a05f2db9c
assembler. Wrap an #ifndef PIC around it. ok naddy@
13 lines
438 B
Plaintext
13 lines
438 B
Plaintext
$OpenBSD: patch-src_common_h,v 1.1 2012/08/11 22:58:18 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
|