[erlang-patches] crypto library makefile patch

Raymond Xiong Raymond.Xiong@REDACTED
Mon Mar 17 07:21:10 CET 2008


When I configured erlang in the following way on Solaris:

$ ./configure --with-ssl=/usr/sfw/lib --enable-dynamic-ssl-lib

crypto_drv.so dones't include full pathname of libcrypto:

$ ldd ./lib/crypto/priv/lib/sparc-sun-solaris2.11/crypto_drv.so
libcrypto.so.0.9.8 =>	 (file not found)
...

lib/crypto/c_src/Makefile.in does try to support this, but fails
due to a bug. The patch below fixes it. 

Thanks,
rayx

--- otp_src_R12B-1/lib/crypto/c_src/Makefile.in.orig	Sat Mar 15 22:03:03 2008
+++ otp_src_R12B-1/lib/crypto/c_src/Makefile.in	Sat Mar 15 22:04:28 2008
@@ -79,6 +79,7 @@
 ifeq ($(HOST_OS),)
 HOST_OS := $(shell $(ERL_TOP)/erts/autoconf/config.guess)
 endif
+DYNAMIC_CRYPTO_LIB=@SSL_DYNAMIC_ONLY@
 LD_R_FLAG=@DED_LD_FLAG_RUNTIME_LIBRARY_PATH@
 ifeq ($(strip $(LD_R_FLAG)),)
 LD_R_OPT =
@@ -89,7 +90,6 @@
 LD_R_OPT =
 endif
 endif
-DYNAMIC_CRYPTO_LIB=@SSL_DYNAMIC_ONLY@
 
 ifeq ($(DYNAMIC_CRYPTO_LIB),yes)
 CRYPTO_LINK_LIB=-L$(SSL_LIBDIR) -lcrypto



More information about the erlang-patches mailing list