[Buildroot] [PATCH 3/3] pciutils: fixup library permissions

Gustavo Zacarias gustavo at zacarias.com.ar
Wed Sep 18 13:38:03 UTC 2013


libpci.so* is installed without +x permissions thus preventing
stripping. Fix it up in the post install target hooks.

Signed-off-by: Gustavo Zacarias <gustavo at zacarias.com.ar>
---
 package/pciutils/pciutils.mk | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/package/pciutils/pciutils.mk b/package/pciutils/pciutils.mk
index 350ca0d..fd6f8aa 100644
--- a/package/pciutils/pciutils.mk
+++ b/package/pciutils/pciutils.mk
@@ -65,4 +65,12 @@ define PCIUTILS_INSTALL_STAGING_CMDS
 		SHARED=$(PCIUTILS_SHARED) install install-lib
 endef
 
+
+# Library lacks +x so strip skips it
+define PCIUTILS_FIX_LIBRARY_MODE
+	-chmod +x $(TARGET_DIR)/usr/lib/libpci.so*
+endef
+
+PCIUTILS_POST_INSTALL_TARGET_HOOKS += PCIUTILS_FIX_LIBRARY_MODE
+
 $(eval $(generic-package))
-- 
1.8.1.5



More information about the buildroot mailing list