2 ## 001_ld_makefile_patch.dpatch
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
11 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
15 [ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
16 patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
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"
31 @@ -20,7 +20,7 @@ AM_CFLAGS = $(WARN_CFLAGS)
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)
39 EMULATION_OFILES = @EMULATION_OFILES@
42 @@ -269,7 +269,7 @@ AM_CFLAGS = $(WARN_CFLAGS)
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