enca: remove -I/usr/include from Makefiles and build native tools without -I<staging...
authorKoen Kooi <koen@openembedded.org>
Mon, 20 Nov 2006 09:18:47 +0000 (09:18 +0000)
committerKoen Kooi <koen@openembedded.org>
Mon, 20 Nov 2006 09:18:47 +0000 (09:18 +0000)
packages/enca/enca_1.9.bb

index 48e33e3..adc6e5f 100644 (file)
@@ -11,8 +11,13 @@ SRC_URI = "http://trific.ath.cx/Ftp//enca/enca-${PV}.tar.bz2 \
 
 inherit autotools 
 
+do_configure_append() {
+       sed -i s:-I/usr/include::g Makefile
+       sed -i s:-I/usr/include::g */Makefile
+}
+
 do_compile() {
-    cd ${S}/tools && oe_runmake CC="${BUILD_CC}"
+    cd ${S}/tools && make CC="${BUILD_CC}" CFLAGS="-O2" CPPFLAGS=""
     oe_runmake
 }