patches/binutils/2.17.50.0.10/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... :-(
     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 --- binutils-2.16.91.0.1/ld/Makefile.am
    30 +++ binutils-2.16.91.0.1/ld/Makefile.am
    31 @@ -20,7 +20,7 @@
    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)
    37  
    38  EMUL = @EMUL@
    39  EMULATION_OFILES = @EMULATION_OFILES@
    40 --- binutils-2.16.91.0.1/ld/Makefile.in
    41 +++ binutils-2.16.91.0.1/ld/Makefile.in
    42 @@ -268,7 +268,7 @@
    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