summaryrefslogtreecommitdiff
path: root/packages/liboil/liboil-0.3.11
diff options
context:
space:
mode:
authorStelios Koroneos <skoroneos@digital-opsis.com>2007-11-20 10:36:22 +0000
committerStelios Koroneos <skoroneos@digital-opsis.com>2007-11-20 10:36:22 +0000
commit1fbb2f5f8e941e136816278e74d19c0a44ec0e1a (patch)
tree035129908c356683310d94feb15e04b11ab07c6b /packages/liboil/liboil-0.3.11
parentdbf523f667e4dbc1152f8f8fad32b96325881042 (diff)
packages/liboil/liboil_0.3.11.bb : Correctly detect if the powerpc target has fpu
Diffstat (limited to 'packages/liboil/liboil-0.3.11')
-rw-r--r--packages/liboil/liboil-0.3.11/.mtn2git_empty0
-rw-r--r--packages/liboil/liboil-0.3.11/ppc-detect-fpu.patch11
2 files changed, 11 insertions, 0 deletions
diff --git a/packages/liboil/liboil-0.3.11/.mtn2git_empty b/packages/liboil/liboil-0.3.11/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/liboil/liboil-0.3.11/.mtn2git_empty
diff --git a/packages/liboil/liboil-0.3.11/ppc-detect-fpu.patch b/packages/liboil/liboil-0.3.11/ppc-detect-fpu.patch
new file mode 100644
index 0000000000..49485e3648
--- /dev/null
+++ b/packages/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