[DIRECTFB] Placeholder
[openwrt/mini2440.git] / toolchain / binutils / patches / 2.18 / 300-001_ld_makefile_patch.patch
blob4624f29a2c44af5861a961cf3ddb127512c7ba49
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: ??
10 if [ $# -ne 1 ]; then
11 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
12 exit 1
15 [ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
16 patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
18 case "$1" in
19 -patch) patch $patch_opts -p1 < $0;;
20 -unpatch) patch $patch_opts -p1 -R < $0;;
22 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
23 exit 1;;
24 esac
26 exit 0
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)
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