Dash:
[t2.git] / package / develop / binutils / 300-001_ld_makefile_patch.patch.uclibc
bloba445f5ccabb62c00f5b0c6e33ba02594b43090b4
1 #!/bin/sh -e
2 # --- T2-COPYRIGHT-NOTE-BEGIN ---
3 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 #
5 # T2 SDE: package/.../binutils/300-001_ld_makefile_patch.patch.uclibc
6 # Copyright (C) 2004 - 2016 The T2 SDE Project
7 #
8 # More information can be found in the files COPYING and README.
9 #
10 # This patch file is dual-licensed. It is available under the license the
11 # patched project is licensed under, as long as it is an OpenSource license
12 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
13 # of the GNU General Public License as published by the Free Software
14 # Foundation; either version 2 of the License, or (at your option) any later
15 # version.
16 # --- T2-COPYRIGHT-NOTE-END ---
18 ## 001_ld_makefile_patch.dpatch
20 ## All lines beginning with `## DP:' are a description of the patch.
21 ## DP: Description: correct where ld scripts are installed
22 ## DP: Author: Chris Chimelis <chris@debian.org>
23 ## DP: Upstream status: N/A
24 ## DP: Date: ??
26 if [ $# -ne 1 ]; then
27 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
28 exit 1
31 [ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
32 patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
34 case "$1" in
35 -patch) patch $patch_opts -p1 < $0;;
36 -unpatch) patch $patch_opts -p1 -R < $0;;
38 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
39 exit 1;;
40 esac
42 exit 0
44 @DPATCH@
45 --- binutils-2.16.91.0.1/ld/Makefile.am
46 +++ binutils-2.16.91.0.1/ld/Makefile.am
47 @@ -20,7 +20,7 @@
48 # We put the scripts in the directory $(scriptdir)/ldscripts.
49 # We can't put the scripts in $(datadir) because the SEARCH_DIR
50 # directives need to be different for native and cross linkers.
51 -scriptdir = $(tooldir)/lib
52 +scriptdir = $(libdir)
54 EMUL = @EMUL@
55 EMULATION_OFILES = @EMULATION_OFILES@
56 --- binutils-2.16.91.0.1/ld/Makefile.in
57 +++ binutils-2.16.91.0.1/ld/Makefile.in
58 @@ -268,7 +268,7 @@
59 # We put the scripts in the directory $(scriptdir)/ldscripts.
60 # We can't put the scripts in $(datadir) because the SEARCH_DIR
61 # directives need to be different for native and cross linkers.
62 -scriptdir = $(tooldir)/lib
63 +scriptdir = $(libdir)
64 BASEDIR = $(srcdir)/..
65 BFDDIR = $(BASEDIR)/bfd
66 INCDIR = $(BASEDIR)/include