OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
2.3 KiB

  1. #!/bin/sh -e
  2. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. #
  5. # Filename: package/.../uclibc/pkg_patch/binutils-300-001_ld_makefile_patch.patch
  6. # Copyright (C) 2006 The OpenSDE Project
  7. # Copyright (C) 2004 - 2006 The T2 SDE Project
  8. #
  9. # More information can be found in the files COPYING and README.
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. # --- SDE-COPYRIGHT-NOTE-END ---
  18. ## 001_ld_makefile_patch.dpatch
  19. ##
  20. ## All lines beginning with `## DP:' are a description of the patch.
  21. ## DP: Description: correct where ld scripts are installed
  22. ## DP: Author: Chris Chimelis <chris@debian.org>
  23. ## DP: Upstream status: N/A
  24. ## DP: Date: ??
  25. if [ $# -ne 1 ]; then
  26. echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
  27. exit 1
  28. fi
  29. [ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
  30. patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
  31. case "$1" in
  32. -patch) patch $patch_opts -p1 < $0;;
  33. -unpatch) patch $patch_opts -p1 -R < $0;;
  34. *)
  35. echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
  36. exit 1;;
  37. esac
  38. exit 0
  39. @DPATCH@
  40. --- binutils-2.16.91.0.1/ld/Makefile.am
  41. +++ binutils-2.16.91.0.1/ld/Makefile.am
  42. @@ -20,7 +20,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. EMUL = @EMUL@
  49. EMULATION_OFILES = @EMULATION_OFILES@
  50. --- binutils-2.16.91.0.1/ld/Makefile.in
  51. +++ binutils-2.16.91.0.1/ld/Makefile.in
  52. @@ -268,7 +268,7 @@
  53. # We put the scripts in the directory $(scriptdir)/ldscripts.
  54. # We can't put the scripts in $(datadir) because the SEARCH_DIR
  55. # directives need to be different for native and cross linkers.
  56. -scriptdir = $(tooldir)/lib
  57. +scriptdir = $(libdir)
  58. BASEDIR = $(srcdir)/..
  59. BFDDIR = $(BASEDIR)/bfd
  60. INCDIR = $(BASEDIR)/include