clean gcc 4.0.0 patch directory
[openwrt.git] / toolchain / binutils / 2.16.91.0.1 / 300-001_ld_makefile_patch.patch
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
10 if [ $# -ne 1 ]; then
11 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
12 exit 1
13 fi
14
15 [ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
16 patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
17
18 case "$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;;
24 esac
25
26 exit 0
27
28 @DPATCH@
29 --- binutils-2.16.91.0.1/ld/Makefile.am
30 +++ binutils-2.16.91.0.1/ld/Makefile.am
31 @@ -20,7 +20,7 @@
32 # We put the scripts in the directory $(scriptdir)/ldscripts.
33 # We can't put the scripts in $(datadir) because the SEARCH_DIR
34 # directives need to be different for native and cross linkers.
35 -scriptdir = $(tooldir)/lib
36 +scriptdir = $(libdir)
37
38 EMUL = @EMUL@
39 EMULATION_OFILES = @EMULATION_OFILES@
40 --- binutils-2.16.91.0.1/ld/Makefile.in
41 +++ binutils-2.16.91.0.1/ld/Makefile.in
42 @@ -268,7 +268,7 @@
43 # We put the scripts in the directory $(scriptdir)/ldscripts.
44 # We can't put the scripts in $(datadir) because the SEARCH_DIR
45 # directives need to be different for native and cross linkers.
46 -scriptdir = $(tooldir)/lib
47 +scriptdir = $(libdir)
48 BASEDIR = $(srcdir)/..
49 BFDDIR = $(BASEDIR)/bfd
50 INCDIR = $(BASEDIR)/include
This page took 0.048521 seconds and 5 git commands to generate.