Package: liboil0
Version: 0.3.9-1
Severity: normal
Tags: patch
On the amd64 platform, liboil does not detect the cpuflags correctly.
This leads it to disable all optimization, greatly impacting the
performance of many apps.
To see for yourself, build the source and then run examples/printcpu on
an amd64 machine.
The very very simple patch to fix this is attached. Please consider
applying.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-rc4-g0c056c50-dirty
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
--- liboil-0.3.9/liboil/liboilcpu.c 2006-05-22 20:07:56.000000000 -0400
+++ liboilmod-0.3.9/liboil/liboilcpu.c 2006-05-28 19:05:58.000000000 -0400
@@ -743,7 +743,7 @@
static void
oil_cpu_detect_arch(void)
{
-#ifdef __i386__
+#if defined(__i386__) || defined(__amd64__)
oil_cpu_detect_i386();
#endif
#if defined(__powerpc__) || defined(__PPC__) || defined(__ppc__)