9cd955
From: Peter Lemenkov <lemenkov@gmail.com>
9cd955
Date: Thu, 25 Feb 2010 16:57:43 +0300
Hans Ulrich Niedermann 696873
Subject: [PATCH] Remove rpath
9cd955
9cd955
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
9cd955
9cd955
diff --git a/lib/crypto/c_src/Makefile.in b/lib/crypto/c_src/Makefile.in
e5d275
index 31124ba477..a4a6c158cc 100644
9cd955
--- a/lib/crypto/c_src/Makefile.in
9cd955
+++ b/lib/crypto/c_src/Makefile.in
e5d275
@@ -96,7 +96,7 @@ endif
9cd955
 DYNAMIC_CRYPTO_LIB=@SSL_DYNAMIC_ONLY@
9cd955
 
9cd955
 ifeq ($(DYNAMIC_CRYPTO_LIB),yes)
9cd955
-SSL_DED_LD_RUNTIME_LIBRARY_PATH = @SSL_DED_LD_RUNTIME_LIBRARY_PATH@
9cd955
+SSL_DED_LD_RUNTIME_LIBRARY_PATH =
61833a
 CRYPTO_LINK_LIB=$(SSL_DED_LD_RUNTIME_LIBRARY_PATH) -L$(SSL_LIBDIR) -l$(SSL_CRYPTO_LIBNAME)
a6c182
 EXTRA_FLAGS = -DHAVE_DYNAMIC_CRYPTO_LIB
9cd955
 else
9cd955
diff --git a/lib/crypto/priv/Makefile b/lib/crypto/priv/Makefile
57b0bc
index ff9d3e1dc9..d3aba77808 100644
9cd955
--- a/lib/crypto/priv/Makefile
9cd955
+++ b/lib/crypto/priv/Makefile
844843
@@ -61,7 +61,7 @@ OBJS = $(OBJDIR)/crypto.o
9cd955
 # ----------------------------------------------------
9cd955
 
96952b
 $(SO_NIFLIB): $(OBJS)
9cd955
-	$(SO_LD) $(SO_LDFLAGS) -L$(SO_SSL_LIBDIR) -Wl,-R$(SO_SSL_LIBDIR) \
9cd955
+	$(SO_LD) $(SO_LDFLAGS) -L$(SO_SSL_LIBDIR) \
9cd955
 	-o $@ $^ -lcrypto
9cd955
 
96952b
 $(DLL_NIFLIB): $(OBJS)