btsco: stop configure from putting -I/usr/include into the commmand line, fixes the...
authorKoen Kooi <koen@openembedded.org>
Fri, 24 Nov 2006 19:27:48 +0000 (19:27 +0000)
committerKoen Kooi <koen@openembedded.org>
Fri, 24 Nov 2006 19:27:48 +0000 (19:27 +0000)
* config.log is a handy debug tool

packages/btsco/btsco_0.42.bb

index 005f371..a4dd11b 100644 (file)
@@ -9,3 +9,13 @@ inherit autotools pkgconfig
 SRC_URI = "${SOURCEFORGE_MIRROR}/bluetooth-alsa/btsco-${PV}.tar.gz"
 
 S = "${WORKDIR}/${PN}-${PV}"
+
+CFLAGS += " -I${STAGING_INCDIR} "
+
+#there are some bogus macros putting -I/usr/include into C(PP)FLAGS, lets fix that
+do_configure() {
+       libtoolize --force
+       gnu-configize 
+       sed -i 's:-I${bluez_prefix}/include::g' configure
+       oe_runconf
+}