Blame otp-0002-Remove-rpath.patch

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