300-001_ld_makefile_patch.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. if [ $# -ne 1 ]; then
  10. echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
  11. exit 1
  12. fi
  13. [ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
  14. patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
  15. case "$1" in
  16. -patch) patch $patch_opts -p1 < $0;;
  17. -unpatch) patch $patch_opts -p1 -R < $0;;
  18. *)
  19. echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
  20. exit 1;;
  21. esac
  22. exit 0
  23. @DPATCH@
  24. --- binutils-2.16.91.0.1/ld/Makefile.am
  25. +++ binutils-2.16.91.0.1/ld/Makefile.am
  26. @@ -20,7 +20,7 @@
  27. # We put the scripts in the directory $(scriptdir)/ldscripts.
  28. # We can't put the scripts in $(datadir) because the SEARCH_DIR
  29. # directives need to be different for native and cross linkers.
  30. -scriptdir = $(tooldir)/lib
  31. +scriptdir = $(libdir)
  32. EMUL = @EMUL@
  33. EMULATION_OFILES = @EMULATION_OFILES@
  34. --- binutils-2.16.91.0.1/ld/Makefile.in
  35. +++ binutils-2.16.91.0.1/ld/Makefile.in
  36. @@ -268,7 +268,7 @@
  37. # We put the scripts in the directory $(scriptdir)/ldscripts.
  38. # We can't put the scripts in $(datadir) because the SEARCH_DIR
  39. # directives need to be different for native and cross linkers.
  40. -scriptdir = $(tooldir)/lib
  41. +scriptdir = $(libdir)
  42. BASEDIR = $(srcdir)/..
  43. BFDDIR = $(BASEDIR)/bfd
  44. INCDIR = $(BASEDIR)/include