usrp_0.12.bb : Fix compile.h header file problem.
authorPhilip Balister <philip@balister.org>
Tue, 9 Jan 2007 21:11:38 +0000 (21:11 +0000)
committerPhilip Balister <philip@balister.org>
Tue, 9 Jan 2007 21:11:38 +0000 (21:11 +0000)
               Add hack so it links on EFIKA/powerpc.

packages/usrp/files/fix_compile_h.patch [new file with mode: 0644]
packages/usrp/usrp_0.12.bb

diff --git a/packages/usrp/files/fix_compile_h.patch b/packages/usrp/files/fix_compile_h.patch
new file mode 100644 (file)
index 0000000..02ba7e4
--- /dev/null
@@ -0,0 +1,13 @@
+Index: gnuradio/trunk/usrp/host/lib/fusb_linux.cc
+===================================================================
+--- gnuradio/trunk/usrp/host/lib/fusb_linux.cc (revision 3534)
++++ gnuradio/trunk/usrp/host/lib/fusb_linux.cc (revision 3886)
+@@ -28,5 +28,7 @@
+ #include <usb.h>              // libusb header
+ #include <stdexcept>
++#ifdef HAVE_LINUX_COMPILER_H
+ #include <linux/compiler.h>
++#endif
+ #include <linux/usbdevice_fs.h>       // interface to kernel portion of user mode usb driver
+ #include <sys/ioctl.h>
+
index 5fc6969..ade37ba 100644 (file)
@@ -7,13 +7,16 @@ RDEPENDS = "python-core"
 PR = "r0"
 
 SRC_URI = "ftp://ftp.gnu.org/gnu/gnuradio/usrp-${PV}.tar.gz \
-           file://usb11.patch;patch=1" \
+           file://usb11.patch;patch=1 \
+           file://fix_compile_h.patch;patch=1;pnum=3 \
            file://install_test.patch;patch=1"
 
 S = "${WORKDIR}/usrp-${PV}"
 
 inherit autotools pkgconfig
 
+CXXFLAGS_powerpc += "-lstdc++"
+
 export BUILD_SYS := "${BUILD_SYS}"
 export HOST_SYS := "${HOST_SYS}"