[openssl-dev] DSO's on Soalris
Richard Levitte
levitte at openssl.org
Wed Feb 24 00:44:40 UTC 2016
In message <V27aCQ6NmSQuocZ at srv.efca.com> on Tue, 23 Feb 2016 16:36:34 -0800, "Erik Forsberg" <erik at efca.com> said:
erik>
erik> after the recent changes that build engines like foo.so, I suppose
erik> it was forgotten to update Makefile.shared for Solaris platforms.
erik>
erik> link_dso.solaris:
erik> @ if $(DETECT_GNU_LD); then \
erik> $(DO_GNU_DSO); \
erik> else \
erik> $(CALC_VERSIONS); \
erik> SHLIB=lib$(LIBNAME).so; \
erik> SHLIB_SUFFIX=; \
erik> ALLSYMSFLAGS=""; \
erik> NOALLSYMSFLAGS=""; \
erik> SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -h $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX -Wl,-Bsymbolic"; \
erik> fi; \
erik> $(LINK_SO_DSO)
erik>
erik> I removed the lib prefix from SHLIB in order to pass all the tests
erik> that tries to load the ossltest engine.
erik>
erik> I assume that was the decision, right ?
Yes, that's exactly the idea. This commit message explains the
reasoning (I hope):
commit 9ee0ed3de66678a15db126d10b3e4226e835b8f5
Author: Richard Levitte <levitte at openssl.org>
Date: Mon Feb 15 18:29:09 2016 +0100
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 <appro at openssl.org>
Thanks for notifying!
Cheers,
Richard
--
Richard Levitte levitte at openssl.org
OpenSSL Project http://www.openssl.org/~levitte/
More information about the openssl-dev
mailing list