summaryrefslogtreecommitdiff
path: root/cross/h8300-hms-binutils/patches/patch-ah
diff options
context:
space:
mode:
Diffstat (limited to 'cross/h8300-hms-binutils/patches/patch-ah')
-rw-r--r--cross/h8300-hms-binutils/patches/patch-ah39
1 files changed, 39 insertions, 0 deletions
diff --git a/cross/h8300-hms-binutils/patches/patch-ah b/cross/h8300-hms-binutils/patches/patch-ah
new file mode 100644
index 00000000000..3c0a99d5416
--- /dev/null
+++ b/cross/h8300-hms-binutils/patches/patch-ah
@@ -0,0 +1,39 @@
+$NetBSD: patch-ah,v 1.1 2010/02/08 05:18:38 dholland Exp $
+
+DESTDIR support
+
+--- ../binutils-2.12.1/ld/Makefile.in.orig 2002-05-09 14:50:49.000000000 +0000
++++ ../binutils-2.12.1/ld/Makefile.in
+@@ -1819,24 +1819,24 @@ mostlyclean-local:
+ .PHONY: install-exec-local install-data-local
+
+ install-exec-local: ld-new$(EXEEXT)
+- $(mkinstalldirs) $(bindir) $(tooldir)/bin
++ $(mkinstalldirs) ${DESTDIR}$(bindir) ${DESTDIR}$(tooldir)/bin
+ @list='$(noinst_PROGRAMS)'; for p in $$list; do \
+ if test -f $$p; then \
+- echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
+- $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
++ echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p ${DESTDIR}$(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
++ $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p ${DESTDIR}$(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
+ else :; fi; \
+ done
+ n=`echo ld | sed '$(transform)'`; \
+ if [ "$(bindir)/$$n$(EXEEXT)" != "$(tooldir)/bin/ld$(EXEEXT)" ]; then \
+- rm -f $(tooldir)/bin/ld$(EXEEXT); \
+- ln $(bindir)/$$n$(EXEEXT) $(tooldir)/bin/ld$(EXEEXT) >/dev/null 2>/dev/null \
+- || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(tooldir)/bin/ld$(EXEEXT); \
++ rm -f ${DESTDIR}$(tooldir)/bin/ld$(EXEEXT); \
++ ln ${DESTDIR}$(bindir)/$$n$(EXEEXT) ${DESTDIR}$(tooldir)/bin/ld$(EXEEXT) >/dev/null 2>/dev/null \
++ || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) ld-new$(EXEEXT) ${DESTDIR}$(tooldir)/bin/ld$(EXEEXT); \
+ fi
+
+ install-data-local:
+- $(mkinstalldirs) $(scriptdir)/ldscripts
++ $(mkinstalldirs) ${DESTDIR}$(scriptdir)/ldscripts
+ for f in ldscripts/*; do \
+- $(INSTALL_DATA) $$f $(scriptdir)/$$f ; \
++ $(INSTALL_DATA) $$f ${DESTDIR}$(scriptdir)/$$f ; \
+ done
+
+ # We want install to imply install-info as per GNU standards, despite the