From: Richard Levitte Date: Fri, 8 Jul 2016 11:33:27 +0000 (+0200) Subject: Unix: Set the execute permission on installed shared libraries X-Git-Tag: OpenSSL_1_1_0-pre6~253 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3503549ee8bd59d23d00b9dbbc2444e91fc44746;p=oweals%2Fopenssl.git Unix: Set the execute permission on installed shared libraries Some Unix variants require shared libraries to have the execute permissions set, or they won't be loadable or executable when loaded. Among others, cygwin has this requirement. Reviewed-by: Matt Caswell --- diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl index af7a5e75a3..567e2af890 100644 --- a/Configurations/unix-Makefile.tmpl +++ b/Configurations/unix-Makefile.tmpl @@ -368,7 +368,7 @@ install_dev: : {- output_off() if windowsdll(); "" -}; \ echo "install $$s1 -> $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/$$fn1"; \ cp $$s1 $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/$$fn1.new; \ - chmod 644 $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/$$fn1.new; \ + chmod 755 $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/$$fn1.new; \ mv -f $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/$$fn1.new \ $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/$$fn1; \ if [ "$$fn1" != "$$fn2" ]; then \ @@ -378,7 +378,7 @@ install_dev: : {- output_on() if windowsdll(); "" -}{- output_off() unless windowsdll(); "" -}; \ echo "install $$s2 -> $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/$$fn2"; \ cp $$s2 $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/$$fn2.new; \ - chmod 644 $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/$$fn2.new; \ + chmod 755 $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/$$fn2.new; \ mv -f $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/$$fn2.new \ $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/$$fn2; \ : {- output_on() unless windowsdll(); "" -}; \