summaryrefslogtreecommitdiff
path: root/patches/binutils/2.20/240-ld_makefile.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/binutils/2.20/240-ld_makefile.patch')
-rw-r--r--patches/binutils/2.20/240-ld_makefile.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/patches/binutils/2.20/240-ld_makefile.patch b/patches/binutils/2.20/240-ld_makefile.patch
new file mode 100644
index 0000000..c1ae311
--- /dev/null
+++ b/patches/binutils/2.20/240-ld_makefile.patch
@@ -0,0 +1,25 @@
+Description: correct where ld scripts are installed
+Author: Chris Chimelis <chris@debian.org>
+
+--- binutils-2.16.91.0.1/ld/Makefile.am
++++ binutils-2.16.91.0.1/ld/Makefile.am
+@@ -20,7 +20,7 @@
+ # We put the scripts in the directory $(scriptdir)/ldscripts.
+ # We can't put the scripts in $(datadir) because the SEARCH_DIR
+ # directives need to be different for native and cross linkers.
+-scriptdir = $(tooldir)/lib
++scriptdir = $(libdir)
+
+ EMUL = @EMUL@
+ EMULATION_OFILES = @EMULATION_OFILES@
+--- binutils-2.16.91.0.1/ld/Makefile.in
++++ binutils-2.16.91.0.1/ld/Makefile.in
+@@ -268,7 +268,7 @@
+ # We put the scripts in the directory $(scriptdir)/ldscripts.
+ # We can't put the scripts in $(datadir) because the SEARCH_DIR
+ # directives need to be different for native and cross linkers.
+-scriptdir = $(tooldir)/lib
++scriptdir = $(libdir)
+ BASEDIR = $(srcdir)/..
+ BFDDIR = $(BASEDIR)/bfd
+ INCDIR = $(BASEDIR)/include