summaryrefslogtreecommitdiffstats
path: root/package/libffi
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2011-12-06 12:45:57 +0100
committerPeter Korsgaard <jacmet@sunsite.dk>2011-12-11 23:34:48 +0100
commit22acade2ec3116021304f82d157b3c09ab22f45e (patch)
treec31f8a5e2318237e08bfe4654469a97101ed8f46 /package/libffi
parenta877a07ee83878d6dae0dc364aacd4962fcf169a (diff)
downloadbuildroot-novena-22acade2ec3116021304f82d157b3c09ab22f45e.tar.gz
buildroot-novena-22acade2ec3116021304f82d157b3c09ab22f45e.zip
libffi: remove invalid variable 'includedir' in .pc file
Fixes the following error: Variable 'includedir' not defined in '/home/daniel/buildroot/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/lib/pkgconfig/libffi.pc' Also, use $(SED) instead of 'sed -i'. Signed-off-by: Daniel Mack <zonque@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/libffi')
-rw-r--r--package/libffi/libffi.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/package/libffi/libffi.mk b/package/libffi/libffi.mk
index 660a03478..5ada36d6f 100644
--- a/package/libffi/libffi.mk
+++ b/package/libffi/libffi.mk
@@ -13,7 +13,8 @@ LIBFFI_INSTALL_STAGING = YES
# accordingly
define LIBFFI_MOVE_STAGING_HEADERS
mv $(STAGING_DIR)/usr/lib/libffi-*/include/*.h $(STAGING_DIR)/usr/include/
- sed -i '/^includedir.*/d' $(STAGING_DIR)/usr/lib/pkgconfig/libffi.pc
+ $(SED) '/^includedir.*/d' $(STAGING_DIR)/usr/lib/pkgconfig/libffi.pc
+ $(SED) '/^Cflags:.*/d' $(STAGING_DIR)/usr/lib/pkgconfig/libffi.pc
rm -rf $(TARGET_DIR)/usr/lib/libffi-*
endef
@@ -23,7 +24,8 @@ LIBFFI_POST_INSTALL_STAGING_HOOKS += LIBFFI_MOVE_STAGING_HEADERS
define LIBFFI_MOVE_TARGET_HEADERS
install -d $(TARGET_DIR)/usr/include/
mv $(TARGET_DIR)/usr/lib/libffi-*/include/*.h $(TARGET_DIR)/usr/include/
- sed -i '/^includedir.*/d' $(TARGET_DIR)/usr/lib/pkgconfig/libffi.pc
+ $(SED) '/^includedir.*/d' $(STAGING_DIR)/usr/lib/pkgconfig/libffi.pc
+ $(SED) '/^Cflags:.*/d' $(STAGING_DIR)/usr/lib/pkgconfig/libffi.pc
rm -rf $(TARGET_DIR)/usr/lib/libffi-*
endef