aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/liboil/liboil-0.3.11/ppc-detect-fpu.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/liboil/liboil-0.3.11/ppc-detect-fpu.patch')
-rw-r--r--recipes/liboil/liboil-0.3.11/ppc-detect-fpu.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/recipes/liboil/liboil-0.3.11/ppc-detect-fpu.patch b/recipes/liboil/liboil-0.3.11/ppc-detect-fpu.patch
new file mode 100644
index 0000000000..49485e3648
--- /dev/null
+++ b/recipes/liboil/liboil-0.3.11/ppc-detect-fpu.patch
@@ -0,0 +1,11 @@
+--- /m4/orig-as-gcc-inline-assembly.m4 2007-03-17 04:03:30.000000000 +0200
++++ /m4/as-gcc-inline-assembly.m4 2007-11-20 12:20:24.000000000 +0200
+@@ -38,7 +38,7 @@
+ [
+ AC_MSG_CHECKING([if compiler supports FPU instructions on PowerPC])
+
+- AC_TRY_COMPILE([], [__asm__ ("fadd 0,0,0"::) ], [flag_ok=yes], [flag_ok=no])
++ AC_TRY_COMPILE([], [double x = 0; __asm__ ("fadd 0,0,0"::"f" (x):"32") ], [flag_ok=yes], [flag_ok=no])
+
+ if test "X$flag_ok" = Xyes ; then
+ $1