]>
Commit | Line | Data |
---|---|---|
1d4ec104 MT |
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 | diff -urNad /home/james/debian/packages/binutils/binutils-2.14.90.0.6/ld/Makefile.am binutils-2.14.90.0.6/ld/Makefile.am | |
30 | --- /home/james/debian/packages/binutils/binutils-2.14.90.0.6/ld/Makefile.am 2003-08-21 16:28:48.000000000 +0100 | |
31 | +++ binutils-2.14.90.0.6/ld/Makefile.am 2003-09-10 23:12:09.000000000 +0100 | |
32 | @@ -19,7 +19,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 | diff -urNad /home/james/debian/packages/binutils/binutils-2.14.90.0.6/ld/Makefile.in binutils-2.14.90.0.6/ld/Makefile.in | |
42 | --- /home/james/debian/packages/binutils/binutils-2.14.90.0.6/ld/Makefile.in 2003-08-21 16:28:48.000000000 +0100 | |
43 | +++ binutils-2.14.90.0.6/ld/Makefile.in 2003-09-10 23:12:09.000000000 +0100 | |
44 | @@ -128,7 +128,7 @@ | |
45 | # We put the scripts in the directory $(scriptdir)/ldscripts. | |
46 | # We can't put the scripts in $(datadir) because the SEARCH_DIR | |
47 | # directives need to be different for native and cross linkers. | |
48 | -scriptdir = $(tooldir)/lib | |
49 | +scriptdir = $(libdir) | |
50 | ||
51 | EMUL = @EMUL@ | |
52 | EMULATION_OFILES = @EMULATION_OFILES@ |