summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils/binutils/binutils-uclibc-300-001_ld_makefile_patch.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils/binutils-uclibc-300-001_ld_makefile_patch.patch')
-rw-r--r--meta/recipes-devtools/binutils/binutils/binutils-uclibc-300-001_ld_makefile_patch.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils/binutils-uclibc-300-001_ld_makefile_patch.patch b/meta/recipes-devtools/binutils/binutils/binutils-uclibc-300-001_ld_makefile_patch.patch
new file mode 100644
index 0000000000..07312d70bf
--- /dev/null
+++ b/meta/recipes-devtools/binutils/binutils/binutils-uclibc-300-001_ld_makefile_patch.patch
@@ -0,0 +1,51 @@
1#!/bin/sh -e
2## 001_ld_makefile_patch.dpatch
3##
4## All lines beginning with `## DP:' are a description of the patch.
5## DP: Description: correct where ld scripts are installed
6## DP: Author: Chris Chimelis <chris@debian.org>
7## DP: Upstream status: N/A
8## DP: Date: ??
9
10if [ $# -ne 1 ]; then
11 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
12 exit 1
13fi
14
15[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
16patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
17
18case "$1" in
19 -patch) patch $patch_opts -p1 < $0;;
20 -unpatch) patch $patch_opts -p1 -R < $0;;
21 *)
22 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
23 exit 1;;
24esac
25
26exit 0
27Upstream-Status: Inappropriate [debian patch]
28
29@DPATCH@
30--- binutils-2.16.91.0.1/ld/Makefile.am
31+++ binutils-2.16.91.0.1/ld/Makefile.am
32@@ -20,7 +20,7 @@
33 # We put the scripts in the directory $(scriptdir)/ldscripts.
34 # We can't put the scripts in $(datadir) because the SEARCH_DIR
35 # directives need to be different for native and cross linkers.
36-scriptdir = $(tooldir)/lib
37+scriptdir = $(libdir)
38
39 EMUL = @EMUL@
40 EMULATION_OFILES = @EMULATION_OFILES@
41--- binutils-2.16.91.0.1/ld/Makefile.in
42+++ binutils-2.16.91.0.1/ld/Makefile.in
43@@ -268,7 +268,7 @@
44 # We put the scripts in the directory $(scriptdir)/ldscripts.
45 # We can't put the scripts in $(datadir) because the SEARCH_DIR
46 # directives need to be different for native and cross linkers.
47-scriptdir = $(tooldir)/lib
48+scriptdir = $(libdir)
49 BASEDIR = $(srcdir)/..
50 BFDDIR = $(BASEDIR)/bfd
51 INCDIR = $(BASEDIR)/include