From e5573e723695a830c05ae7a2649d811abc6b5061 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Sat, 28 Jun 2014 23:52:20 +0200 Subject: [PATCH] libffi: remove some header files installed in /usr/lib in the target For some reason, libffi installs some header files in /usr/lib/libffi-/include, which is a non-standard location and therefore they do not get removed automatically by the target-finalize logic. This commit adds a post-install hook in libffi.mk to get rid of these unneeded headers on the target. Signed-off-by: Thomas Petazzoni Signed-off-by: Peter Korsgaard --- package/libffi/libffi.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/libffi/libffi.mk b/package/libffi/libffi.mk index dc7132d352..1377b8f4bd 100644 --- a/package/libffi/libffi.mk +++ b/package/libffi/libffi.mk @@ -22,6 +22,12 @@ endef LIBFFI_POST_INSTALL_STAGING_HOOKS += LIBFFI_MOVE_STAGING_HEADERS +# Remove headers that are not at the usual location from the target +define LIBFFI_REMOVE_TARGET_HEADERS + $(RM) -rf $(TARGET_DIR)/usr/lib/libffi-$(LIBFFI_VERSION) +endef + +LIBFFI_POST_INSTALL_TARGET_HOOKS += LIBFFI_REMOVE_TARGET_HEADERS $(eval $(autotools-package)) $(eval $(host-autotools-package)) -- 2.30.2