File otp-R16B-rpath.patch of Package erlang
Index: otp-OTP-24.0/lib/crypto/c_src/Makefile.in
===================================================================
--- otp-OTP-24.0.orig/lib/crypto/c_src/Makefile.in
+++ otp-OTP-24.0/lib/crypto/c_src/Makefile.in
@@ -136,7 +136,7 @@ endif
endif
ifeq ($(DYNAMIC_OR_WIN_CRYPTO_LIB),yes)
-SSL_DED_LD_RUNTIME_LIBRARY_PATH = @SSL_DED_LD_RUNTIME_LIBRARY_PATH@
+SSL_DED_LD_RUNTIME_LIBRARY_PATH =
CRYPTO_LINK_LIB=$(SSL_DED_LD_RUNTIME_LIBRARY_PATH) -L$(SSL_LIBDIR) -l$(SSL_CRYPTO_LIBNAME)
EXTRA_FLAGS = -DHAVE_DYNAMIC_CRYPTO_LIB
else