diff options
author | Richard Levitte <levitte@openssl.org> | 2016-07-08 13:33:27 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-07-08 15:04:30 +0200 |
commit | 3503549ee8bd59d23d00b9dbbc2444e91fc44746 (patch) | |
tree | 4a7eda4a4762e866c877d9145afb399c3088526f | |
parent | 27f215cfa36de073b4582f7cf91999c988fce534 (diff) |
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 <matt@openssl.org>
-rw-r--r-- | Configurations/unix-Makefile.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
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(); "" -}; \ |