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
a6c182
index a20ddff..e890927 100644
9cd955
--- a/lib/crypto/c_src/Makefile.in
9cd955
+++ b/lib/crypto/c_src/Makefile.in
a6c182
@@ -85,7 +85,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
96952b
index 0989f14..0d29444 100644
9cd955
--- a/lib/crypto/priv/Makefile
9cd955
+++ b/lib/crypto/priv/Makefile
96952b
@@ -60,7 +60,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)