5659c63442
- set EXTRA_CFLAGS to our CFLAGS, rather than overriding OPT, fixing a linker error with dynamic annotations (when configured using --with-valgrind) - fix the ppc build of the debug configuration (patch 130; rhbz#661510)
20 lines
835 B
Diff
20 lines
835 B
Diff
diff -up Python-3.2b2/Python/ceval.c.fix-ppc-debug-build Python-3.2b2/Python/ceval.c
|
|
--- Python-3.2b2/Python/ceval.c.fix-ppc-debug-build 2011-01-05 16:37:27.007598805 -0500
|
|
+++ Python-3.2b2/Python/ceval.c 2011-01-05 16:45:06.562652472 -0500
|
|
@@ -30,10 +30,11 @@
|
|
|
|
typedef unsigned long long uint64;
|
|
|
|
-#if defined(__ppc__) /* <- Don't know if this is the correct symbol; this
|
|
- section should work for GCC on any PowerPC
|
|
- platform, irrespective of OS.
|
|
- POWER? Who knows :-) */
|
|
+/* PowerPC suppport.
|
|
+ "__ppc__" appears to be the preprocessor definition to detect on OS X, whereas
|
|
+ "__powerpc__" appears to be the correct one for Linux with GCC
|
|
+*/
|
|
+#if defined(__ppc__) || defined (__powerpc__)
|
|
|
|
#define READ_TIMESTAMP(var) ppc_getcounter(&var)
|
|
|