On Fri, 2020-06-05 at 13:31 +0200, Arne Schwabe wrote: [...] > Somehow this turns into a autoconf/automake nightmare:
Heh, got to say autoconf is a bit of a nightmare for its more esoteric features because the docs usually don't cover them and you end up having to take the opinion of the internet, which is somewhat, er, diverse. > [testengine_section] > dynamic_path = $ENV::srcdir/.libs/libtestengine`test .odule = > .yes SHREXTSHREXT echo .so || echo .dylib` > > is what I end up in the openssl.cnf > > The generated Makefile already has: > > $(builddir)/%.cnf: $(srcdir)/%.cnf.in > sed 's/SHREXT/`test .$module = .yes && echo .so || echo > .dylib`/' < $< > > $@ Hm, so SHREXT is dynamic on MAC platforms. If I replace the single quote with double, that should allow the shell expansion. > Maybe instead of using that use magic useing two different section > like testengineso and testenginedylib and then makeing the engine > name in the script dynamic? I'll investigate, but openssl has a fairly tight binding between the name of the dynamic object and the name of the engine. It's very difficult (but not I perhaps impossible) to have an engine name different from the DSO name. > Also for some reason the makefile still builds it now as .so instead > of .dylib That's likely a libtool flag issue. If you update this in Makefile.am: libtestengine_la_LDFLAGS = -rpath /lib -avoid-version -module -shared -export-dynamic does it build a .dylib? > and if I manually put the full path in the openssl.cnf the > test works: > > dynamic_path = > /Users/arne/oss/openvpn-ossl/tests/unit_tests/engine- > key/.libs/libtestengine.so > > Any idea? I can also help to get this mess resolve but maybe you have > a quick idea what is wrong. My money would be on the idea that environment specifiers in openssl conf files are only supported on UNIX. I'll get it to do a full path substitution on build to fix this. James
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel