patches/binutils/2.17.50.0.8/300-001_ld_makefile_patch.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Feb 24 11:00:05 2007 +0000 (2007-02-24)
changeset 1 eeea35fbf182
permissions -rw-r--r--
Add the full crosstool-NG sources to the new repository of its own.
You might just say: 'Yeah! crosstool-NG's got its own repo!".
Unfortunately, that's because the previous repo got damaged beyond repair and I had no backup.
That means I'm putting backups in place in the afternoon.
That also means we've lost history... :-(
yann@1
     1
#!/bin/sh -e
yann@1
     2
## 001_ld_makefile_patch.dpatch
yann@1
     3
##
yann@1
     4
## All lines beginning with `## DP:' are a description of the patch.
yann@1
     5
## DP: Description: correct where ld scripts are installed
yann@1
     6
## DP: Author: Chris Chimelis <chris@debian.org>
yann@1
     7
## DP: Upstream status: N/A
yann@1
     8
## DP: Date: ??
yann@1
     9
yann@1
    10
if [ $# -ne 1 ]; then
yann@1
    11
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
yann@1
    12
    exit 1
yann@1
    13
fi
yann@1
    14
yann@1
    15
[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
yann@1
    16
patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
yann@1
    17
yann@1
    18
case "$1" in
yann@1
    19
       -patch) patch $patch_opts -p1 < $0;;
yann@1
    20
       -unpatch) patch $patch_opts -p1 -R < $0;;
yann@1
    21
        *)
yann@1
    22
                echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
yann@1
    23
                exit 1;;
yann@1
    24
esac
yann@1
    25
yann@1
    26
exit 0
yann@1
    27
yann@1
    28
@DPATCH@
yann@1
    29
--- binutils-2.16.91.0.1/ld/Makefile.am
yann@1
    30
+++ binutils-2.16.91.0.1/ld/Makefile.am
yann@1
    31
@@ -20,7 +20,7 @@
yann@1
    32
 # We put the scripts in the directory $(scriptdir)/ldscripts.
yann@1
    33
 # We can't put the scripts in $(datadir) because the SEARCH_DIR
yann@1
    34
 # directives need to be different for native and cross linkers.
yann@1
    35
-scriptdir = $(tooldir)/lib
yann@1
    36
+scriptdir = $(libdir)
yann@1
    37
 
yann@1
    38
 EMUL = @EMUL@
yann@1
    39
 EMULATION_OFILES = @EMULATION_OFILES@
yann@1
    40
--- binutils-2.16.91.0.1/ld/Makefile.in
yann@1
    41
+++ binutils-2.16.91.0.1/ld/Makefile.in
yann@1
    42
@@ -268,7 +268,7 @@
yann@1
    43
 # We put the scripts in the directory $(scriptdir)/ldscripts.
yann@1
    44
 # We can't put the scripts in $(datadir) because the SEARCH_DIR
yann@1
    45
 # directives need to be different for native and cross linkers.
yann@1
    46
-scriptdir = $(tooldir)/lib
yann@1
    47
+scriptdir = $(libdir)
yann@1
    48
 BASEDIR = $(srcdir)/..
yann@1
    49
 BFDDIR = $(BASEDIR)/bfd
yann@1
    50
 INCDIR = $(BASEDIR)/include