summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/liboil/liboil-0.3.11/.mtn2git_empty0
-rw-r--r--packages/liboil/liboil-0.3.11/ppc-detect-fpu.patch11
-rw-r--r--packages/liboil/liboil_0.3.11.bb4
3 files changed, 14 insertions, 1 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
diff --git a/packages/liboil/liboil_0.3.11.bb b/packages/liboil/liboil_0.3.11.bb
index 94471a26fc..352377ed6b 100644
--- a/packages/liboil/liboil_0.3.11.bb
+++ b/packages/liboil/liboil_0.3.11.bb
@@ -1,8 +1,10 @@
DESCRIPTION = "Liboil is a library of simple functions that are optimized for various CPUs."
HOMEPAGE = "http://liboil.freedesktop.org/"
LICENSE = "various"
+PR="r1"
-SRC_URI = "http://liboil.freedesktop.org/download/${P}.tar.gz"
+SRC_URI = "http://liboil.freedesktop.org/download/${P}.tar.gz \
+ file://ppc-detect-fpu.patch;patch=1"
inherit autotools pkgconfig