Blame otp-0002-Remove-rpath.patch

Peter Lemenkov c1353d
From 2e10f728feb56ea96b2832999a8c34f1f19646bc Mon Sep 17 00:00:00 2001
Peter Lemenkov c1353d
From: Peter Lemenkov <lemenkov@gmail.com>
Peter Lemenkov c1353d
Date: Thu, 25 Feb 2010 16:57:43 +0300
Peter Lemenkov 281d39
Subject: [PATCH 2/7] Remove rpath
Peter Lemenkov c1353d
Peter Lemenkov c1353d
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
Peter Lemenkov c1353d
---
Peter Lemenkov c1353d
 lib/crypto/c_src/Makefile.in |    2 +-
Peter Lemenkov c1353d
 lib/crypto/priv/Makefile     |    2 +-
Peter Lemenkov c1353d
 lib/ssl/c_src/Makefile.in    |    6 +++---
Peter Lemenkov c1353d
 3 files changed, 5 insertions(+), 5 deletions(-)
Peter Lemenkov c1353d
Peter Lemenkov c1353d
diff --git a/lib/crypto/c_src/Makefile.in b/lib/crypto/c_src/Makefile.in
Peter Lemenkov c1353d
index 18040a3..b169930 100644
Peter Lemenkov c1353d
--- a/lib/crypto/c_src/Makefile.in
Peter Lemenkov c1353d
+++ b/lib/crypto/c_src/Makefile.in
Peter Lemenkov c1353d
@@ -83,7 +83,7 @@ endif
Peter Lemenkov c1353d
 DYNAMIC_CRYPTO_LIB=@SSL_DYNAMIC_ONLY@
Peter Lemenkov c1353d
 
Peter Lemenkov c1353d
 ifeq ($(DYNAMIC_CRYPTO_LIB),yes)
Peter Lemenkov c1353d
-SSL_DED_LD_RUNTIME_LIBRARY_PATH = @SSL_DED_LD_RUNTIME_LIBRARY_PATH@
Peter Lemenkov c1353d
+SSL_DED_LD_RUNTIME_LIBRARY_PATH =
Peter Lemenkov c1353d
 CRYPTO_LINK_LIB=$(SSL_DED_LD_RUNTIME_LIBRARY_PATH) -L$(SSL_LIBDIR) -lcrypto
Peter Lemenkov c1353d
 else
Peter Lemenkov c1353d
 SSL_DED_LD_RUNTIME_LIBRARY_PATH=
Peter Lemenkov c1353d
diff --git a/lib/crypto/priv/Makefile b/lib/crypto/priv/Makefile
Peter Lemenkov c1353d
index b8acdac..2c2989a 100644
Peter Lemenkov c1353d
--- a/lib/crypto/priv/Makefile
Peter Lemenkov c1353d
+++ b/lib/crypto/priv/Makefile
Peter Lemenkov c1353d
@@ -60,7 +60,7 @@ OBJS = $(OBJDIR)/crypto_drv.o
Peter Lemenkov c1353d
 # ----------------------------------------------------
Peter Lemenkov c1353d
 
Peter Lemenkov c1353d
 $(SO_DRIVER): $(OBJS)
Peter Lemenkov c1353d
-	$(SO_LD) $(SO_LDFLAGS) -L$(SO_SSL_LIBDIR) -Wl,-R$(SO_SSL_LIBDIR) \
Peter Lemenkov c1353d
+	$(SO_LD) $(SO_LDFLAGS) -L$(SO_SSL_LIBDIR) \
Peter Lemenkov c1353d
 	-o $@ $^ -lcrypto
Peter Lemenkov c1353d
 
Peter Lemenkov c1353d
 $(DLL_DRIVER): $(OBJS)
Peter Lemenkov c1353d
diff --git a/lib/ssl/c_src/Makefile.in b/lib/ssl/c_src/Makefile.in
Peter Lemenkov c1353d
index 49a209f..5e6c74e 100644
Peter Lemenkov c1353d
--- a/lib/ssl/c_src/Makefile.in
Peter Lemenkov c1353d
+++ b/lib/ssl/c_src/Makefile.in
Peter Lemenkov c1353d
@@ -105,7 +105,7 @@ else
Peter Lemenkov c1353d
 SSL_MAKEFILE =
Peter Lemenkov c1353d
 endif
Peter Lemenkov c1353d
 
Peter Lemenkov c1353d
-CC_R_FLAG=@CFLAG_RUNTIME_LIBRARY_PATH@
Peter Lemenkov c1353d
+CC_R_FLAG=
Peter Lemenkov c1353d
 
Peter Lemenkov c1353d
 ifeq ($(findstring @,$(CC_R_FLAG)),@)
Peter Lemenkov c1353d
 # Old erts configure used which hasn't replaced @CFLAG_RUNTIME_LIBRARY_PATH@;
Peter Lemenkov c1353d
@@ -117,7 +117,7 @@ else
Peter Lemenkov c1353d
 ifeq ($(findstring osf,$(TARGET)),osf)		# osf1: -Wl,-rpath,
Peter Lemenkov c1353d
 CC_R_FLAG = -Wl,-rpath,
Peter Lemenkov c1353d
 else						# Default: -Wl,-R
Peter Lemenkov c1353d
-CC_R_FLAG = -Wl,-R
Peter Lemenkov c1353d
+CC_R_FLAG =
Peter Lemenkov c1353d
 endif
Peter Lemenkov c1353d
 endif
Peter Lemenkov c1353d
 endif
Peter Lemenkov c1353d
@@ -125,7 +125,7 @@ endif
Peter Lemenkov c1353d
 ifeq ($(strip $(CC_R_FLAG)),)
Peter Lemenkov c1353d
 CC_R_OPT =
Peter Lemenkov c1353d
 else
Peter Lemenkov c1353d
-CC_R_OPT = $(CC_R_FLAG)$(SSL_LIBDIR)
Peter Lemenkov c1353d
+CC_R_OPT =
Peter Lemenkov c1353d
 endif
Peter Lemenkov c1353d
 
Peter Lemenkov c1353d
 SSL_CC_RUNTIME_LIBRARY_PATH=@SSL_CC_RUNTIME_LIBRARY_PATH@
Peter Lemenkov c1353d
-- 
Peter Lemenkov a8e7f1
1.6.6.1
Peter Lemenkov c1353d