make-dfsg/debian/patches/0004-load.c-SV-40515-Define-RTLD_GLOBAL-if-not-set.patch
Manoj Srivastava 6536b40890 [master]: A new bug fixing release
* When presented with a very very long command line (e.g. WebKit's linking
  of libWebCore.la in current git), make fails to execute the command as
  it doesn't split the command line to fit within the limits. There is a
  patch used by people to solve this (gentoo, etc). Adam Conrad has
  provided a patch to fix this.  (Closes: #688601).
* Pre-4.0 make had an memory corruption issue that caused repeated
  execution of a specific makefile to display the cirruption. Running
  with make 4.0 does not show the issue. (Closes: #682895).
* recently, the Multi-Arch: foreign tag was added toth make binary
  package.  Jakub Wilk pointed out that this is not correct, some of the
  make interfaces are actually architecture-dependent. Reverting that
  change.
* Bug fix #688601: "fails to execute extraordinarily long command
  lines", thanks to Daniel Stone
* Bug fix #682895: "incorrect variable handling and corruption", thanks
  to Tim Spriggs
2014-05-04 18:14:56 -07:00

29 lines
691 B
Diff

From 8c8bdb3741650a5db48b1514977d7da1f8211a72 Mon Sep 17 00:00:00 2001
From: Daniel Richard G <skunk@iskunk.org>
Date: Sat, 23 Nov 2013 22:31:36 -0500
Subject: [PATCH 4/9] * load.c: [SV 40515] Define RTLD_GLOBAL if not set.
Copyright-paperwork-exempt: yes
---
load.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/load.c b/load.c
index a2cbc25..9d201ba 100644
--- a/load.c
+++ b/load.c
@@ -30,6 +30,11 @@ this program. If not, see <http://www.gnu.org/licenses/>. */
#include "filedef.h"
#include "variable.h"
+/* Tru64 V4.0 does not have this flag */
+#ifndef RTLD_GLOBAL
+# define RTLD_GLOBAL 0
+#endif
+
struct load_list
{
struct load_list *next;
--
2.0.0.rc0