Blame otp-0002-Remove-rpath.patch

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