pkgconfig bbclass: also sed out bogus includes
authorKoen Kooi <koen@openembedded.org>
Wed, 25 Nov 2009 12:11:43 +0000 (13:11 +0100)
committerKoen Kooi <koen@openembedded.org>
Wed, 25 Nov 2009 12:11:43 +0000 (13:11 +0100)
RP says: In theory the recipes themselves should be patched to stop this nonesense getting in there in the first place
but that is appropriate for pkgconfig.bbclass

classes/pkgconfig.bbclass

index 5844461..f3d9371 100644 (file)
@@ -3,7 +3,7 @@ DEPENDS_prepend = "pkgconfig-native "
 do_install_prepend () {
 
 for i in `find ${S}/ -name "*.pc" -type f` ; do \
-            sed -i -e 's:-L${STAGING_LIBDIR}::g' $i
+            sed -i -e 's:-L${STAGING_LIBDIR}::g' -e 's:-I${STAGING_INCDIR}::g' $i
         done
 }