Blame otp-rpath.patch

Gérard Milmeister e5c813
diff -urNp otp_src_R12B-5.orig/lib/crypto/c_src/Makefile.in otp_src_R12B-5/lib/crypto/c_src/Makefile.in
Gérard Milmeister e5c813
--- otp_src_R12B-5.orig/lib/crypto/c_src/Makefile.in	2009-04-21 18:38:46.000000000 +0530
Gérard Milmeister e5c813
+++ otp_src_R12B-5/lib/crypto/c_src/Makefile.in	2009-04-21 18:51:34.000000000 +0530
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
Gérard Milmeister e5c813
diff -urNp otp_src_R12B-5.orig/lib/crypto/priv/Makefile otp_src_R12B-5/lib/crypto/priv/Makefile
Gérard Milmeister e5c813
--- otp_src_R12B-5.orig/lib/crypto/priv/Makefile	2009-04-21 18:38:46.000000000 +0530
Gérard Milmeister e5c813
+++ otp_src_R12B-5/lib/crypto/priv/Makefile	2009-04-21 18:52:56.000000000 +0530
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)
Gérard Milmeister e5c813
diff -urNp otp_src_R12B-5.orig/lib/ssl/c_src/Makefile.in otp_src_R12B-5/lib/ssl/c_src/Makefile.in
Gérard Milmeister e5c813
--- otp_src_R12B-5.orig/lib/ssl/c_src/Makefile.in	2009-04-21 18:38:47.000000000 +0530
Gérard Milmeister e5c813
+++ otp_src_R12B-5/lib/ssl/c_src/Makefile.in	2009-04-21 19:58:29.000000000 +0530
Gérard Milmeister e5c813
@@ -104,7 +104,7 @@ else
Gérard Milmeister e5c813
 SSL_MAKEFILE =
Gérard Milmeister e5c813
 endif
Gérard Milmeister e5c813
 
Gérard Milmeister e5c813
-CC_R_FLAG=@CFLAG_RUNTIME_LIBRARY_PATH@
Gérard Milmeister e5c813
+CC_R_FLAG=
Gérard Milmeister e5c813
 ifeq ($(findstring @,$(CC_R_FLAG)),@)
Gérard Milmeister e5c813
 # Old erts configure used which hasn't replaced @CFLAG_RUNTIME_LIBRARY_PATH@;
Gérard Milmeister e5c813
 # we try our best here instead...
Gérard Milmeister e5c813
@@ -113,9 +113,9 @@ ifeq ($(findstring darwin,$(TARGET)),dar
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