xfs
[Top] [All Lists]

[PATCH 3/3] install shared libs with +x bits

To: xfs@xxxxxxxxxxx
Subject: [PATCH 3/3] install shared libs with +x bits
From: Mike Frysinger <vapier@xxxxxxxxxx>
Date: Mon, 24 Sep 2012 19:39:38 -0400
In-reply-to: <1348529978-30048-1-git-send-email-vapier@xxxxxxxxxx>
References: <1348529978-30048-1-git-send-email-vapier@xxxxxxxxxx>
These are shared libs w/executable code, so make sure they have +x bits
set on them.  Some kernels will proactively disallow executable mmaps if
the files lack +x bits.  It's also the right thing to do.

Signed-off-by: Mike Frysinger <vapier@xxxxxxxxxx>
---
 include/buildmacros | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/buildmacros b/include/buildmacros
index 31c7eb0..7a01880 100644
--- a/include/buildmacros
+++ b/include/buildmacros
@@ -58,7 +58,7 @@ ifeq ($(ENABLE_SHARED),yes)
 INSTALL_LTLIB = \
        cd $(TOPDIR)/$(LIBNAME)/.libs; \
        ../$(INSTALL) -m 755 -d $(PKG_ROOT_LIB_DIR); \
-       ../$(INSTALL) -m 644 -T so_dot_version $(LIBNAME).lai 
$(PKG_ROOT_LIB_DIR); \
+       ../$(INSTALL) -m 755 -T so_dot_version $(LIBNAME).lai 
$(PKG_ROOT_LIB_DIR); \
        ../$(INSTALL) -T so_dot_current $(LIBNAME).lai $(PKG_ROOT_LIB_DIR)
 endif
 
-- 
1.7.12

<Prev in Thread] Current Thread [Next in Thread>