[ar7] do not patch the local copy of ar7part.c to be exactly like what is mainline...
[openwrt.git] / toolchain / binutils / patches / 2.18 / 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 Index: binutils-2.18/ld/Makefile.am
30 ===================================================================
31 --- binutils-2.18.orig/ld/Makefile.am 2007-06-28 09:19:34.837940280 +0200
32 +++ binutils-2.18/ld/Makefile.am 2007-06-28 09:19:35.795794664 +0200
33 @@ -18,7 +18,7 @@
34 # We put the scripts in the directory $(scriptdir)/ldscripts.
35 # We can't put the scripts in $(datadir) because the SEARCH_DIR
36 # directives need to be different for native and cross linkers.
37 -scriptdir = $(tooldir)/lib
38 +scriptdir = $(libdir)
39
40 EMUL = @EMUL@
41 EMULATION_OFILES = @EMULATION_OFILES@
42 Index: binutils-2.18/ld/Makefile.in
43 ===================================================================
44 --- binutils-2.18.orig/ld/Makefile.in 2007-06-28 09:19:34.844939216 +0200
45 +++ binutils-2.18/ld/Makefile.in 2007-06-28 09:19:35.796794512 +0200
46 @@ -287,7 +287,7 @@
47 # We put the scripts in the directory $(scriptdir)/ldscripts.
48 # We can't put the scripts in $(datadir) because the SEARCH_DIR
49 # directives need to be different for native and cross linkers.
50 -scriptdir = $(tooldir)/lib
51 +scriptdir = $(libdir)
52 BASEDIR = $(srcdir)/..
53 BFDDIR = $(BASEDIR)/bfd
54 INCDIR = $(BASEDIR)/include
This page took 0.045128 seconds and 5 git commands to generate.