From 9ee0ed3de66678a15db126d10b3e4226e835b8f5 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 15 Feb 2016 18:29:09 +0100 Subject: Big rename fest of engine DSO names, from libFOO.so to FOO.so The engine DSOs were named as if they were shared libraries, and could end up having all sorts of fancy names: Cygwin: cygFOO.dll Mingw: FOOeay32.dll Unix: libFOO.so / libFOO.sl / libFOO.dylib / ... This may be confusing, since they look like libraries one should link with at link time, when they're just DSOs. It's therefore time to rename them, and do it consistently on all platforms: Cygwin & Mingw: FOO.dll Unix: FOO.{so,sl,dylib,...} Interestingly enough, the MSVC and VMS builds always did it this way. Reviewed-by: Andy Polyakov --- engines/Makefile.in | 33 ++++++++++++--------------------- engines/build.info | 26 +++++++++++++------------- 2 files changed, 25 insertions(+), 34 deletions(-) (limited to 'engines') diff --git a/engines/Makefile.in b/engines/Makefile.in index e54d60e3ec..99ba822fb2 100644 --- a/engines/Makefile.in +++ b/engines/Makefile.in @@ -79,33 +79,24 @@ e_padlock-x86_64.s: asm/e_padlock-x86_64.pl files: $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO -# XXXXX This currently only works on systems that use .so as suffix -# for shared libraries as well as for Cygwin which uses the -# dlfcn_name_converter and therefore stores the engines with .so suffix, too. -# XXXXX This was extended to HP-UX dl targets, which use .sl suffix. -# XXXXX This was extended to mingw targets, which use eay32.dll suffix without lib as prefix. install: @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... @if [ -n "$(SHARED_LIBS)" ]; then \ set -e; \ $(PERL) $(TOP)/util/mkdir-p.pl $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines; \ for l in $(LIBNAMES); do \ - ( echo installing $$l; \ - pfx=lib; \ - if expr "$(PLATFORM)" : "Cygwin" >/dev/null; then \ - sfx=".so"; \ - cp cyg$$l.dll $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines/$$pfx$$l$$sfx.new; \ - else \ - case "$(CFLAGS)" in \ - *DSO_DLFCN*) sfx=`expr "$(SHLIB_EXT)" : '.*\(\.[a-z][a-z]*\)' \| ".so"`;; \ - *DSO_DL*) sfx=".sl";; \ - *DSO_WIN32*) sfx="eay32.dll"; pfx=;; \ - *) sfx=".bad";; \ - esac; \ - cp $$pfx$$l$$sfx $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines/$$pfx$$l$$sfx.new; \ - fi; \ - chmod 555 $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines/$$pfx$$l$$sfx.new; \ - mv -f $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines/$$pfx$$l$$sfx.new $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines/$$pfx$$l$$sfx ); \ + cp $${l}$(DSO_EXT) $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines/$${l}$(DSO_EXT).new; \ + chmod 555 $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines/$${l}$(DSO_EXT).new; \ + mv -f $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines/$${l}$(DSO_EXT).new $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines/$${l}$(DSO_EXT); \ + done; \ + fi + +uninstall: + @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... + @if [ -n "$(SHARED_LIBS)" ]; then \ + set -e; \ + for l in $(LIBNAMES); do \ + $(RM) $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines/$${l}$(DSO_EXT); \ done; \ fi diff --git a/engines/build.info b/engines/build.info index e45650ca20..cae49862ed 100644 --- a/engines/build.info +++ b/engines/build.info @@ -6,19 +6,19 @@ IF[{- $config{no_shared} -}] e_capi.c \ e_dasync.c ELSE - ENGINES=libpadlock libcapi libdasync libossltest - SOURCE[libpadlock]=e_padlock.c {- $target{padlock_asm_src} -} - DEPEND[libpadlock]=../libcrypto - INCLUDE[libpadlock]={- rel2abs(catdir($builddir,"../include")) -} ../include - SOURCE[libcapi]=e_capi.c - DEPEND[libcapi]=../libcrypto - INCLUDE[libcapi]={- rel2abs(catdir($builddir,"../include")) -} ../include - SOURCE[libdasync]=e_dasync.c - DEPEND[libdasync]=../libcrypto - INCLUDE[libdasync]={- rel2abs(catdir($builddir,"../include")) -} ../include - SOURCE[libossltest]=e_ossltest.c - DEPEND[libossltest]=../libcrypto - INCLUDE[libossltest]={- rel2abs(catdir($builddir,"../include")) -} ../include + ENGINES=padlock capi dasync ossltest + SOURCE[padlock]=e_padlock.c {- $target{padlock_asm_src} -} + DEPEND[padlock]=../libcrypto + INCLUDE[padlock]={- rel2abs(catdir($builddir,"../include")) -} ../include + SOURCE[capi]=e_capi.c + DEPEND[capi]=../libcrypto + INCLUDE[capi]={- rel2abs(catdir($builddir,"../include")) -} ../include + SOURCE[dasync]=e_dasync.c + DEPEND[dasync]=../libcrypto + INCLUDE[dasync]={- rel2abs(catdir($builddir,"../include")) -} ../include + SOURCE[ossltest]=e_ossltest.c + DEPEND[ossltest]=../libcrypto + INCLUDE[ossltest]={- rel2abs(catdir($builddir,"../include")) -} ../include ENDIF BEGINRAW[Makefile] -- cgit v1.2.3