Blame otp-R12B-5-0004-Remove-rpath.patch

Peter Lemenkov 09a929
From 03e261ee3152f3c45b23886e143c28bf2953f78d Mon Sep 17 00:00:00 2001
Peter Lemenkov 09a929
From: Peter Lemenkov <lemenkov@gmail.com>
Peter Lemenkov 09a929
Date: Mon, 19 Apr 2010 13:36:36 +0400
Peter Lemenkov 09a929
Subject: [PATCH 4/7] Remove rpath
Peter Lemenkov 09a929
Peter Lemenkov 09a929
---
Peter Lemenkov 09a929
 lib/crypto/c_src/Makefile.in |    2 +-
Peter Lemenkov 09a929
 lib/crypto/priv/Makefile     |    2 +-
Peter Lemenkov 09a929
 lib/ssl/c_src/Makefile.in    |    6 +++---
Peter Lemenkov 09a929
 3 files changed, 5 insertions(+), 5 deletions(-)
Peter Lemenkov 09a929
Peter Lemenkov 09a929
diff --git a/lib/crypto/c_src/Makefile.in b/lib/crypto/c_src/Makefile.in
Peter Lemenkov 09a929
index fb9ebae..eddcd0a 100644
Peter Lemenkov 09a929
--- a/lib/crypto/c_src/Makefile.in
Peter Lemenkov 09a929
+++ b/lib/crypto/c_src/Makefile.in
Gérard Milmeister e245b2
@@ -80,7 +80,7 @@ ifeq ($(HOST_OS),)
Gérard Milmeister 8d9a91
 HOST_OS := $(shell $(ERL_TOP)/erts/autoconf/config.guess)
Gérard Milmeister 8d9a91
 endif
Gérard Milmeister e245b2
 DYNAMIC_CRYPTO_LIB=@SSL_DYNAMIC_ONLY@
Gérard Milmeister 8d9a91
-LD_R_FLAG=@DED_LD_FLAG_RUNTIME_LIBRARY_PATH@
Gérard Milmeister 8d9a91
+LD_R_FLAG=
Gérard Milmeister da518f
 ifeq ($(strip $(LD_R_FLAG)),)
Gérard Milmeister da518f
 LD_R_OPT =
Gérard Milmeister da518f
 else
Peter Lemenkov 09a929
diff --git a/lib/crypto/priv/Makefile b/lib/crypto/priv/Makefile
Peter Lemenkov 09a929
index b8acdac..2c2989a 100644
Peter Lemenkov 09a929
--- a/lib/crypto/priv/Makefile
Peter Lemenkov 09a929
+++ b/lib/crypto/priv/Makefile
Gérard Milmeister e245b2
@@ -60,7 +60,7 @@ OBJS = $(OBJDIR)/crypto_drv.o
Gérard Milmeister 8d9a91
 # ----------------------------------------------------
Gérard Milmeister 8d9a91
 
Gérard Milmeister 8d9a91
 $(SO_DRIVER): $(OBJS)
Gérard Milmeister 8d9a91
-	$(SO_LD) $(SO_LDFLAGS) -L$(SO_SSL_LIBDIR) -Wl,-R$(SO_SSL_LIBDIR) \
Gérard Milmeister 8d9a91
+	$(SO_LD) $(SO_LDFLAGS) -L$(SO_SSL_LIBDIR) \
Gérard Milmeister 8d9a91
 	-o $@ $^ -lcrypto
Gérard Milmeister 8d9a91
 
Gérard Milmeister 8d9a91
 $(DLL_DRIVER): $(OBJS)
Peter Lemenkov 09a929
diff --git a/lib/ssl/c_src/Makefile.in b/lib/ssl/c_src/Makefile.in
Peter Lemenkov 09a929
index 57b2929..6fc1140 100644
Peter Lemenkov 09a929
--- a/lib/ssl/c_src/Makefile.in
Peter Lemenkov 09a929
+++ b/lib/ssl/c_src/Makefile.in
Gérard Milmeister 9d47c2
@@ -104,7 +104,7 @@ else
Gérard Milmeister 9d47c2
 SSL_MAKEFILE =
Gérard Milmeister 9d47c2
 endif
Gérard Milmeister 9d47c2
 
Gérard Milmeister 9d47c2
-CC_R_FLAG=@CFLAG_RUNTIME_LIBRARY_PATH@
Gérard Milmeister 9d47c2
+CC_R_FLAG=
Gérard Milmeister 9d47c2
 ifeq ($(findstring @,$(CC_R_FLAG)),@)
Gérard Milmeister 9d47c2
 # Old erts configure used which hasn't replaced @CFLAG_RUNTIME_LIBRARY_PATH@;
Gérard Milmeister 9d47c2
 # we try our best here instead...
Peter Lemenkov 09a929
@@ -113,9 +113,9 @@ ifeq ($(findstring darwin,$(TARGET)),darwin)	# darwin: no flag
Gérard Milmeister da518f
 CC_R_FLAG =
Gérard Milmeister 8d9a91
 else
Gérard Milmeister da518f
 ifeq ($(findstring osf,$(TARGET)),osf)		# osf1: -Wl,-rpath,
Gérard Milmeister da518f
-CC_R_FLAG = -Wl,-rpath,
Gérard Milmeister da518f
+CC_R_FLAG =
Gérard Milmeister da518f
 else						# Default: -Wl,-R
Gérard Milmeister da518f
-CC_R_FLAG = -Wl,-R
Gérard Milmeister da518f
+CC_R_FLAG =
Gérard Milmeister da518f
 endif
Gérard Milmeister 8d9a91
 endif
Gérard Milmeister e245b2
 endif
Peter Lemenkov 09a929
-- 
Peter Lemenkov 09a929
1.6.6.1
Peter Lemenkov 09a929