summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/libffi/libffi.mk6
1 files changed, 6 insertions, 0 deletions
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))
OpenPOWER on IntegriCloud