diff options
author | Koen Kooi <koen@openembedded.org> | 2007-01-01 23:39:59 +0000 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2007-01-01 23:39:59 +0000 |
commit | 564944c18036d6bc8fb02ea6c3cee334af0b0255 (patch) | |
tree | 2c864cd836740f83db0c3d2d7f903991dc1b1030 /packages/libusb | |
parent | 3c1c4beca65af06cb6d5b572953c2de8a8eb22b3 (diff) |
libusb: fix compilation for powerpc
Diffstat (limited to 'packages/libusb')
-rw-r--r-- | packages/libusb/libusb_0.1.12.bb | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/packages/libusb/libusb_0.1.12.bb b/packages/libusb/libusb_0.1.12.bb index a2b80ecb6d..43c6ea92bd 100644 --- a/packages/libusb/libusb_0.1.12.bb +++ b/packages/libusb/libusb_0.1.12.bb @@ -9,29 +9,25 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/libusb/libusb-${PV}.tar.gz" S = "${WORKDIR}/libusb-${PV}" -inherit autotools pkgconfig +inherit autotools pkgconfig binconfig lib_package PARALLEL_MAKE = "" EXTRA_OECONF = "--disable-build-docs" +export CXXFLAGS += "-lstdc++" + do_stage() { - oe_libinstall -a -so libusb ${STAGING_LIBDIR} - install -d ${STAGING_BINDIR} + autotools_stage_all install -m 755 ${S}/libusb-config ${STAGING_BINDIR} # can we get rid of that? wouldn't a sed statement do as well? - perl -pi -e 's:\-L${libdir} :-L${STAGING_LIBDIR} :' ${STAGING_BINDIR}/libusb-config + sed -i 's:\-L${libdir} :-L${STAGING_LIBDIR} :' ${STAGING_BINDIR}/libusb-config if [ "${STAGING_BINDIR}" != "${STAGING_BINDIR_CROSS}" ]; then install -d ${STAGING_BINDIR_CROSS}/ mv ${STAGING_BINDIR}/libusb-config ${STAGING_BINDIR_CROSS}/libusb-config fi - install -d ${STAGING_INCDIR}/ - for X in usb.h - do - install -m 0644 ${S}/$X ${STAGING_INCDIR}/$X - done } PACKAGES =+ "libusbpp" |