From: Daniel Mack Date: Tue, 6 Dec 2011 11:45:57 +0000 (+0100) Subject: libffi: remove invalid variable 'includedir' in .pc file X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=22acade2ec3116021304f82d157b3c09ab22f45e;p=buildroot.git 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 Signed-off-by: Peter Korsgaard --- diff --git a/package/libffi/libffi.mk b/package/libffi/libffi.mk index 660a034787..5ada36d6f6 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