summaryrefslogtreecommitdiff
path: root/packages/liboil
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
parentdbf523f667e4dbc1152f8f8fad32b96325881042 (diff)
packages/liboil/liboil_0.3.11.bb : Correctly detect if the powerpc target has fpu
Diffstat (limited to 'packages/liboil')
-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