summaryrefslogtreecommitdiff
path: root/cross
diff options
context:
space:
mode:
authormaya <maya@pkgsrc.org>2019-10-11 18:53:02 +0000
committermaya <maya@pkgsrc.org>2019-10-11 18:53:02 +0000
commitb78ff71862ab128284d98d9c63d88c359f595e4b (patch)
treeae55f45719c73b1bd669f84a67f712535c427c39 /cross
parent5b9d62a27a191ffee5093596220d10506f6dd745 (diff)
downloadpkgsrc-b78ff71862ab128284d98d9c63d88c359f595e4b.tar.gz
h8300-hms-{binutils,gcc}: Remove.
This package is not building on netbsd due to a stack smashing error. Attempting to fix it via an update showed that it was removed from upstream a few versions later. Proposed on pkgsrc-users, using the shorter timeline for this package because it is dysfunctional.
Diffstat (limited to 'cross')
-rw-r--r--cross/Makefile4
-rw-r--r--cross/h8300-hms-binutils/DESCR1
-rw-r--r--cross/h8300-hms-binutils/Makefile50
-rw-r--r--cross/h8300-hms-binutils/PLIST108
-rw-r--r--cross/h8300-hms-binutils/distinfo22
-rw-r--r--cross/h8300-hms-binutils/patches/patch-aa25
-rw-r--r--cross/h8300-hms-binutils/patches/patch-ab41
-rw-r--r--cross/h8300-hms-binutils/patches/patch-ac35
-rw-r--r--cross/h8300-hms-binutils/patches/patch-ad35
-rw-r--r--cross/h8300-hms-binutils/patches/patch-ae32
-rw-r--r--cross/h8300-hms-binutils/patches/patch-af32
-rw-r--r--cross/h8300-hms-binutils/patches/patch-ag39
-rw-r--r--cross/h8300-hms-binutils/patches/patch-ah39
-rw-r--r--cross/h8300-hms-binutils/patches/patch-ai27
-rw-r--r--cross/h8300-hms-binutils/patches/patch-aj72
-rw-r--r--cross/h8300-hms-binutils/patches/patch-ak72
-rw-r--r--cross/h8300-hms-binutils/patches/patch-al72
-rw-r--r--cross/h8300-hms-binutils/patches/patch-am72
-rw-r--r--cross/h8300-hms-binutils/patches/patch-an72
-rw-r--r--cross/h8300-hms-binutils/patches/patch-ao72
-rw-r--r--cross/h8300-hms-binutils/patches/patch-ap28
-rw-r--r--cross/h8300-hms-gcc/DESCR1
-rw-r--r--cross/h8300-hms-gcc/Makefile55
-rw-r--r--cross/h8300-hms-gcc/PLIST142
-rw-r--r--cross/h8300-hms-gcc/PLIST.Darwin3
-rw-r--r--cross/h8300-hms-gcc/distinfo26
-rw-r--r--cross/h8300-hms-gcc/patches/patch-.._gcc-3.1_gcc_cp_cfns.h24
-rw-r--r--cross/h8300-hms-gcc/patches/patch-aa15
-rw-r--r--cross/h8300-hms-gcc/patches/patch-ab106
-rw-r--r--cross/h8300-hms-gcc/patches/patch-ac14
-rw-r--r--cross/h8300-hms-gcc/patches/patch-ad389
-rw-r--r--cross/h8300-hms-gcc/patches/patch-ae45
-rw-r--r--cross/h8300-hms-gcc/patches/patch-af90
-rw-r--r--cross/h8300-hms-gcc/patches/patch-ag28
34 files changed, 1 insertions, 1887 deletions
diff --git a/cross/Makefile b/cross/Makefile
index 5e7ed62ce6f..d23077fdc48 100644
--- a/cross/Makefile
+++ b/cross/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.90 2019/10/04 16:05:09 maya Exp $
+# $NetBSD: Makefile,v 1.91 2019/10/11 18:53:02 maya Exp $
#
COMMENT= Cross-platform development utilities
@@ -35,8 +35,6 @@ SUBDIR+= freemint-pml
SUBDIR+= gcc-mips-current
SUBDIR+= h8300-elf-binutils
SUBDIR+= h8300-elf-gcc
-SUBDIR+= h8300-hms-binutils
-SUBDIR+= h8300-hms-gcc
SUBDIR+= icdprog
SUBDIR+= mingw
SUBDIR+= mingw-binutils
diff --git a/cross/h8300-hms-binutils/DESCR b/cross/h8300-hms-binutils/DESCR
deleted file mode 100644
index a5b8b2e966a..00000000000
--- a/cross/h8300-hms-binutils/DESCR
+++ /dev/null
@@ -1 +0,0 @@
-binutils for hitachi h8300-hms cross compile
diff --git a/cross/h8300-hms-binutils/Makefile b/cross/h8300-hms-binutils/Makefile
deleted file mode 100644
index 2933664bc96..00000000000
--- a/cross/h8300-hms-binutils/Makefile
+++ /dev/null
@@ -1,50 +0,0 @@
-# $NetBSD: Makefile,v 1.23 2019/06/08 10:53:28 rillig Exp $
-
-DISTNAME= binutils-2.12.1
-PKGNAME= cross-h8300-hms-binutils-2.12.1
-PKGREVISION= 1
-CATEGORIES= cross
-MASTER_SITES= ftp://ftp.gnu.org/gnu/binutils/
-EXTRACT_SUFX= .tar.bz2
-
-MAINTAINER= pkgsrc-users@NetBSD.org
-HOMEPAGE= # empty
-COMMENT= Cross utility for h8300-hms
-
-H8300_PREFIX= ${PREFIX}/libexec/cross-h8300-hms
-
-WRKSRC= ${WRKDIR}/objdir
-USE_TOOLS+= gmake makeinfo
-HAS_CONFIGURE= yes
-
-CONFIGURE_ARGS+= --prefix=${H8300_PREFIX:Q}
-CONFIGURE_ARGS+= --infodir=${H8300_PREFIX}/binutils --target=h8300-hms
-CONFIGURE_SCRIPT= ${SRCDIR}/configure
-SRCDIR= ${WRKDIR}/${DISTNAME}
-BUILD_TARGET= CFLAGS="-O2 -fomit-frame-pointer" all
-INFO_FILES= yes
-
-INSTALLATION_DIRS+= bin ${H8300_PREFIX}
-
-post-extract:
- ${MKDIR} ${WRKSRC}
-
-pre-configure:
- ${CP} ${PKGSRCDIR}/mk/gnu-config/config.guess ${SRCDIR}
- ${CP} ${PKGSRCDIR}/mk/gnu-config/config.sub ${SRCDIR}
-
-
-post-install:
- for f in h8300-hms-size h8300-hms-objdump h8300-hms-ar \
- h8300-hms-strings h8300-hms-ranlib h8300-hms-objcopy \
- h8300-hms-srconv h8300-hms-sysdump h8300-hms-coffdump \
- h8300-hms-addr2line h8300-hms-readelf h8300-hms-nm \
- h8300-hms-strip h8300-hms-c++filt h8300-hms-as \
- h8300-hms-gasp h8300-hms-ld ; do \
- ${LN} -s ${H8300_PREFIX}/bin/"$$f" \
- ${DESTDIR}${PREFIX}/bin/"$$f" || exit 1; \
- done
- ${MV} ${DESTDIR}${H8300_PREFIX}/lib/libiberty.a \
- ${DESTDIR}${H8300_PREFIX}/lib/libiberty_binutils.a
-
-.include "../../mk/bsd.pkg.mk"
diff --git a/cross/h8300-hms-binutils/PLIST b/cross/h8300-hms-binutils/PLIST
deleted file mode 100644
index 65ec60b6267..00000000000
--- a/cross/h8300-hms-binutils/PLIST
+++ /dev/null
@@ -1,108 +0,0 @@
-@comment $NetBSD: PLIST,v 1.8 2018/01/01 22:29:21 rillig Exp $
-bin/h8300-hms-addr2line
-bin/h8300-hms-ar
-bin/h8300-hms-as
-bin/h8300-hms-c++filt
-bin/h8300-hms-coffdump
-bin/h8300-hms-gasp
-bin/h8300-hms-ld
-bin/h8300-hms-nm
-bin/h8300-hms-objcopy
-bin/h8300-hms-objdump
-bin/h8300-hms-ranlib
-bin/h8300-hms-readelf
-bin/h8300-hms-size
-bin/h8300-hms-srconv
-bin/h8300-hms-strings
-bin/h8300-hms-strip
-bin/h8300-hms-sysdump
-libexec/cross-h8300-hms/bin/h8300-hms-addr2line
-libexec/cross-h8300-hms/bin/h8300-hms-ar
-libexec/cross-h8300-hms/bin/h8300-hms-as
-libexec/cross-h8300-hms/bin/h8300-hms-c++filt
-libexec/cross-h8300-hms/bin/h8300-hms-coffdump
-libexec/cross-h8300-hms/bin/h8300-hms-gasp
-libexec/cross-h8300-hms/bin/h8300-hms-ld
-libexec/cross-h8300-hms/bin/h8300-hms-nm
-libexec/cross-h8300-hms/bin/h8300-hms-objcopy
-libexec/cross-h8300-hms/bin/h8300-hms-objdump
-libexec/cross-h8300-hms/bin/h8300-hms-ranlib
-libexec/cross-h8300-hms/bin/h8300-hms-readelf
-libexec/cross-h8300-hms/bin/h8300-hms-size
-libexec/cross-h8300-hms/bin/h8300-hms-srconv
-libexec/cross-h8300-hms/bin/h8300-hms-strings
-libexec/cross-h8300-hms/bin/h8300-hms-strip
-libexec/cross-h8300-hms/bin/h8300-hms-sysdump
-libexec/cross-h8300-hms/binutils/as.info
-libexec/cross-h8300-hms/binutils/bfd.info
-libexec/cross-h8300-hms/binutils/binutils.info
-libexec/cross-h8300-hms/binutils/configure.info
-libexec/cross-h8300-hms/binutils/gasp.info
-libexec/cross-h8300-hms/binutils/ld.info
-libexec/cross-h8300-hms/binutils/standards.info
-libexec/cross-h8300-hms/h8300-hms/bin/ar
-libexec/cross-h8300-hms/h8300-hms/bin/as
-libexec/cross-h8300-hms/h8300-hms/bin/ld
-libexec/cross-h8300-hms/h8300-hms/bin/nm
-libexec/cross-h8300-hms/h8300-hms/bin/ranlib
-libexec/cross-h8300-hms/h8300-hms/bin/strip
-libexec/cross-h8300-hms/h8300-hms/lib/ldscripts/h8300.x
-libexec/cross-h8300-hms/h8300-hms/lib/ldscripts/h8300.xbn
-libexec/cross-h8300-hms/h8300-hms/lib/ldscripts/h8300.xn
-libexec/cross-h8300-hms/h8300-hms/lib/ldscripts/h8300.xr
-libexec/cross-h8300-hms/h8300-hms/lib/ldscripts/h8300.xu
-libexec/cross-h8300-hms/h8300-hms/lib/ldscripts/h8300h.x
-libexec/cross-h8300-hms/h8300-hms/lib/ldscripts/h8300h.xbn
-libexec/cross-h8300-hms/h8300-hms/lib/ldscripts/h8300h.xn
-libexec/cross-h8300-hms/h8300-hms/lib/ldscripts/h8300h.xr
-libexec/cross-h8300-hms/h8300-hms/lib/ldscripts/h8300h.xu
-libexec/cross-h8300-hms/h8300-hms/lib/ldscripts/h8300s.x
-libexec/cross-h8300-hms/h8300-hms/lib/ldscripts/h8300s.xbn
-libexec/cross-h8300-hms/h8300-hms/lib/ldscripts/h8300s.xn
-libexec/cross-h8300-hms/h8300-hms/lib/ldscripts/h8300s.xr
-libexec/cross-h8300-hms/h8300-hms/lib/ldscripts/h8300s.xu
-libexec/cross-h8300-hms/include/ansidecl.h
-libexec/cross-h8300-hms/include/bfd.h
-libexec/cross-h8300-hms/include/bfdlink.h
-libexec/cross-h8300-hms/include/symcat.h
-libexec/cross-h8300-hms/lib/libbfd.la
-libexec/cross-h8300-hms/lib/libiberty_binutils.a
-libexec/cross-h8300-hms/lib/libopcodes.la
-libexec/cross-h8300-hms/man/man1/h8300-hms-addr2line.1
-libexec/cross-h8300-hms/man/man1/h8300-hms-ar.1
-libexec/cross-h8300-hms/man/man1/h8300-hms-as.1
-libexec/cross-h8300-hms/man/man1/h8300-hms-c++filt.1
-libexec/cross-h8300-hms/man/man1/h8300-hms-dlltool.1
-libexec/cross-h8300-hms/man/man1/h8300-hms-ld.1
-libexec/cross-h8300-hms/man/man1/h8300-hms-nlmconv.1
-libexec/cross-h8300-hms/man/man1/h8300-hms-nm.1
-libexec/cross-h8300-hms/man/man1/h8300-hms-objcopy.1
-libexec/cross-h8300-hms/man/man1/h8300-hms-objdump.1
-libexec/cross-h8300-hms/man/man1/h8300-hms-ranlib.1
-libexec/cross-h8300-hms/man/man1/h8300-hms-readelf.1
-libexec/cross-h8300-hms/man/man1/h8300-hms-size.1
-libexec/cross-h8300-hms/man/man1/h8300-hms-strings.1
-libexec/cross-h8300-hms/man/man1/h8300-hms-strip.1
-libexec/cross-h8300-hms/man/man1/h8300-hms-windres.1
-libexec/cross-h8300-hms/share/locale/da/LC_MESSAGES/opcodes.mo
-libexec/cross-h8300-hms/share/locale/de/LC_MESSAGES/opcodes.mo
-libexec/cross-h8300-hms/share/locale/es/LC_MESSAGES/bfd.mo
-libexec/cross-h8300-hms/share/locale/es/LC_MESSAGES/binutils.mo
-libexec/cross-h8300-hms/share/locale/es/LC_MESSAGES/gas.mo
-libexec/cross-h8300-hms/share/locale/es/LC_MESSAGES/ld.mo
-libexec/cross-h8300-hms/share/locale/es/LC_MESSAGES/opcodes.mo
-libexec/cross-h8300-hms/share/locale/fr/LC_MESSAGES/bfd.mo
-libexec/cross-h8300-hms/share/locale/fr/LC_MESSAGES/binutils.mo
-libexec/cross-h8300-hms/share/locale/fr/LC_MESSAGES/gas.mo
-libexec/cross-h8300-hms/share/locale/fr/LC_MESSAGES/ld.mo
-libexec/cross-h8300-hms/share/locale/fr/LC_MESSAGES/opcodes.mo
-libexec/cross-h8300-hms/share/locale/ja/LC_MESSAGES/bfd.mo
-libexec/cross-h8300-hms/share/locale/ja/LC_MESSAGES/binutils.mo
-libexec/cross-h8300-hms/share/locale/sv/LC_MESSAGES/bfd.mo
-libexec/cross-h8300-hms/share/locale/sv/LC_MESSAGES/ld.mo
-libexec/cross-h8300-hms/share/locale/sv/LC_MESSAGES/opcodes.mo
-libexec/cross-h8300-hms/share/locale/tr/LC_MESSAGES/bfd.mo
-libexec/cross-h8300-hms/share/locale/tr/LC_MESSAGES/binutils.mo
-libexec/cross-h8300-hms/share/locale/tr/LC_MESSAGES/gas.mo
-libexec/cross-h8300-hms/share/locale/tr/LC_MESSAGES/ld.mo
-libexec/cross-h8300-hms/share/locale/tr/LC_MESSAGES/opcodes.mo
diff --git a/cross/h8300-hms-binutils/distinfo b/cross/h8300-hms-binutils/distinfo
deleted file mode 100644
index 96abeab87a6..00000000000
--- a/cross/h8300-hms-binutils/distinfo
+++ /dev/null
@@ -1,22 +0,0 @@
-$NetBSD: distinfo,v 1.4 2015/11/03 00:47:44 agc Exp $
-
-SHA1 (binutils-2.12.1.tar.bz2) = 520a49a68832fd4dd1f4a4a75cdd244b74ce8dff
-RMD160 (binutils-2.12.1.tar.bz2) = 8696f3618f2b861b7ce84e45d87c6caf9843f1c5
-SHA512 (binutils-2.12.1.tar.bz2) = 3f0cb3a139c5e31551d66e2657f881041e97e3587d9bb7f56d7a793ad219c0ee2d8b43234986ef4f83a1abb8da3b95d288be5a57e56194ee8a507201ec9e7946
-Size (binutils-2.12.1.tar.bz2) = 9543675 bytes
-SHA1 (patch-aa) = a13d5173cba83c4b8cedc9f075c6dc8f7ee71821
-SHA1 (patch-ab) = 763917c5860aa3975859801065a3edb90bf19e7d
-SHA1 (patch-ac) = fe72cd813bdcd1ea1f7ecb41ee94a362140997d5
-SHA1 (patch-ad) = ee5ca5d773069602c2d315739ab4e482f36c39b5
-SHA1 (patch-ae) = f64df9b6ec4e151fb904b93bdbda41e1f150c823
-SHA1 (patch-af) = d59a57d79f504b31e2822650a5f543a0be1dd989
-SHA1 (patch-ag) = 23619b91e9b76945a8161145fa9fc57f24574002
-SHA1 (patch-ah) = 479a6b5e998d44fb3f29d9664e02c95ba19a6aa6
-SHA1 (patch-ai) = a045b2ef8fe3bd16990ca572d2ff7c97808221ba
-SHA1 (patch-aj) = 3b53c1df0e1d6a24c71797697d879e326a24a026
-SHA1 (patch-ak) = 6e681a7a53d45a71479b871c8d38e8fe0aa0ebd4
-SHA1 (patch-al) = 6f583d98efe96de5f0f10821a6557c966d6f39a0
-SHA1 (patch-am) = 8e3733fffa11297acb50660357088f6d91d41706
-SHA1 (patch-an) = 2cf5da64248e5cb21ef3d171478b22bdf8a11df3
-SHA1 (patch-ao) = fdab7e8f4d28bf1fdadd5733de928e103e754fcd
-SHA1 (patch-ap) = bec8a8de114b87ab60a4a3916fa158af30f495ec
diff --git a/cross/h8300-hms-binutils/patches/patch-aa b/cross/h8300-hms-binutils/patches/patch-aa
deleted file mode 100644
index 4709cf03153..00000000000
--- a/cross/h8300-hms-binutils/patches/patch-aa
+++ /dev/null
@@ -1,25 +0,0 @@
-$NetBSD: patch-aa,v 1.1 2010/02/08 05:18:37 dholland Exp $
-
-DESTDIR support
-
---- ../binutils-2.12.1/Makefile.in.orig 2002-05-14 23:46:29.000000000 +0000
-+++ ../binutils-2.12.1/Makefile.in
-@@ -360,6 +360,7 @@ BASE_FLAGS_TO_PASS = \
- "CXXFLAGS=$(CXXFLAGS)" \
- "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
- "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
-+ "DESTDIR=$(DESTDIR)" \
- "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
- "INSTALL=$(INSTALL)" \
- "INSTALL_DATA=$(INSTALL_DATA)" \
-@@ -1832,7 +1833,9 @@ MAKEDIRS= \
- $(exec_prefix)
- .PHONY: installdirs
- installdirs: mkinstalldirs
-- $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
-+ for dir in $(MAKEDIRS); do \
-+ $(SHELL) $(srcdir)/mkinstalldirs ${DESTDIR}$$dir; \
-+ done
-
- dir.info: do-install-info
- if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
diff --git a/cross/h8300-hms-binutils/patches/patch-ab b/cross/h8300-hms-binutils/patches/patch-ab
deleted file mode 100644
index c86ac752d62..00000000000
--- a/cross/h8300-hms-binutils/patches/patch-ab
+++ /dev/null
@@ -1,41 +0,0 @@
-$NetBSD: patch-ab,v 1.1 2010/02/08 05:18:37 dholland Exp $
-
-DESTDIR support
-
---- ../binutils-2.12.1/intl/Makefile.in.orig 2002-03-08 19:25:51.000000000 +0000
-+++ ../binutils-2.12.1/intl/Makefile.in
-@@ -115,26 +115,26 @@ install-exec: all
- if test "$(PACKAGE)" = "gettext" \
- && test '@INTLOBJS@' = '$(GETTOBJS)'; then \
- if test -r $(MKINSTALLDIRS); then \
-- $(MKINSTALLDIRS) $(libdir) $(includedir); \
-+ $(MKINSTALLDIRS) ${DESTDIR}$(libdir) ${DESTDIR}$(includedir); \
- else \
-- $(top_srcdir)/mkinstalldirs $(libdir) $(includedir); \
-+ $(top_srcdir)/mkinstalldirs ${DESTDIR}$(libdir) ${DESTDIR}$(includedir); \
- fi; \
-- $(INSTALL_DATA) intlh.inst $(includedir)/libintl.h; \
-- $(INSTALL_DATA) libintl.a $(libdir)/libintl.a; \
-+ $(INSTALL_DATA) intlh.inst ${DESTDIR}$(includedir)/libintl.h; \
-+ $(INSTALL_DATA) libintl.a ${DESTDIR}$(libdir)/libintl.a; \
- else \
- : ; \
- fi
- install-data: all
- if test "$(PACKAGE)" = "gettext"; then \
- if test -r $(MKINSTALLDIRS); then \
-- $(MKINSTALLDIRS) $(gettextsrcdir); \
-+ $(MKINSTALLDIRS) ${DESTDIR}$(gettextsrcdir); \
- else \
-- $(top_srcdir)/mkinstalldirs $(gettextsrcdir); \
-+ $(top_srcdir)/mkinstalldirs ${DESTDIR}$(gettextsrcdir); \
- fi; \
-- $(INSTALL_DATA) VERSION $(gettextsrcdir)/VERSION; \
-+ $(INSTALL_DATA) VERSION ${DESTDIR}$(gettextsrcdir)/VERSION; \
- dists="$(DISTFILES.common)"; \
- for file in $$dists; do \
-- $(INSTALL_DATA) $(srcdir)/$$file $(gettextsrcdir)/$$file; \
-+ $(INSTALL_DATA) $(srcdir)/$$file ${DESTDIR}$(gettextsrcdir)/$$file; \
- done; \
- else \
- : ; \
diff --git a/cross/h8300-hms-binutils/patches/patch-ac b/cross/h8300-hms-binutils/patches/patch-ac
deleted file mode 100644
index 2166156a80d..00000000000
--- a/cross/h8300-hms-binutils/patches/patch-ac
+++ /dev/null
@@ -1,35 +0,0 @@
-$NetBSD: patch-ac,v 1.1 2010/02/08 05:18:37 dholland Exp $
-
-DESTDIR support
-
---- ../binutils-2.12.1/gas/Makefile.am.orig 2002-04-04 16:21:08.000000000 +0000
-+++ ../binutils-2.12.1/gas/Makefile.am
-@@ -666,21 +666,21 @@ CLEANFILES = dep.sed DEPTC DEPTCA DEPOBJ
- install-exec-local: install-exec-bindir @install_tooldir@
-
- install-exec-bindir: $(noinst_PROGRAMS)
-- $(mkinstalldirs) $(bindir)
-+ $(mkinstalldirs) ${DESTDIR}$(bindir)
- @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
-
- install-exec-tooldir: install-exec-bindir $(noinst_PROGRAMS)
-- $(mkinstalldirs) $(tooldir)/bin
-+ $(mkinstalldirs) ${DESTDIR}$(tooldir)/bin
- n=`echo as | sed '$(transform)'`; \
- if [ "$(bindir)/$$n$(EXEEXT)" != "$(tooldir)/bin/as$(EXEEXT)" ]; then \
-- rm -f $(tooldir)/bin/as$(EXEEXT); \
-- ln $(bindir)/$$n$(EXEEXT) $(tooldir)/bin/as$(EXEEXT) >/dev/null 2>/dev/null \
-- || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) as-new$(EXEEXT) $(tooldir)/bin/as$(EXEEXT); \
-+ rm -f ${DESTDIR}$(tooldir)/bin/as$(EXEEXT); \
-+ ln ${DESTDIR}$(bindir)/$$n$(EXEEXT) ${DESTDIR}$(tooldir)/bin/as$(EXEEXT) >/dev/null 2>/dev/null \
-+ || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) as-new$(EXEEXT) ${DESTDIR}$(tooldir)/bin/as$(EXEEXT); \
- else \
- true ; \
- fi
diff --git a/cross/h8300-hms-binutils/patches/patch-ad b/cross/h8300-hms-binutils/patches/patch-ad
deleted file mode 100644
index c2c6726e105..00000000000
--- a/cross/h8300-hms-binutils/patches/patch-ad
+++ /dev/null
@@ -1,35 +0,0 @@
-$NetBSD: patch-ad,v 1.1 2010/02/08 05:18:37 dholland Exp $
-
-DESTDIR support
-
---- ../binutils-2.12.1/gas/Makefile.in.orig 2002-04-04 16:21:08.000000000 +0000
-+++ ../binutils-2.12.1/gas/Makefile.in
-@@ -2843,21 +2843,21 @@ cgen.o: cgen.c cgen.h cgen-desc.h subseg
- install-exec-local: install-exec-bindir @install_tooldir@
-
- install-exec-bindir: $(noinst_PROGRAMS)
-- $(mkinstalldirs) $(bindir)
-+ $(mkinstalldirs) ${DESTDIR}$(bindir)
- @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
-
- install-exec-tooldir: install-exec-bindir $(noinst_PROGRAMS)
-- $(mkinstalldirs) $(tooldir)/bin
-+ $(mkinstalldirs) ${DESTDIR}$(tooldir)/bin
- n=`echo as | sed '$(transform)'`; \
- if [ "$(bindir)/$$n$(EXEEXT)" != "$(tooldir)/bin/as$(EXEEXT)" ]; then \
-- rm -f $(tooldir)/bin/as$(EXEEXT); \
-- ln $(bindir)/$$n$(EXEEXT) $(tooldir)/bin/as$(EXEEXT) >/dev/null 2>/dev/null \
-- || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) as-new$(EXEEXT) $(tooldir)/bin/as$(EXEEXT); \
-+ rm -f ${DESTDIR}$(tooldir)/bin/as$(EXEEXT); \
-+ ln ${DESTDIR}$(bindir)/$$n$(EXEEXT) ${DESTDIR}$(tooldir)/bin/as$(EXEEXT) >/dev/null 2>/dev/null \
-+ || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) as-new$(EXEEXT) ${DESTDIR}$(tooldir)/bin/as$(EXEEXT); \
- else \
- true ; \
- fi
diff --git a/cross/h8300-hms-binutils/patches/patch-ae b/cross/h8300-hms-binutils/patches/patch-ae
deleted file mode 100644
index 14eb8253ee9..00000000000
--- a/cross/h8300-hms-binutils/patches/patch-ae
+++ /dev/null
@@ -1,32 +0,0 @@
-$NetBSD: patch-ae,v 1.1 2010/02/08 05:18:37 dholland Exp $
-
-DESTDIR support
-
---- ../binutils-2.12.1/binutils/Makefile.am.orig 2002-04-04 16:20:11.000000000 +0000
-+++ ../binutils-2.12.1/binutils/Makefile.am
-@@ -340,19 +340,19 @@ CLEANFILES = dep.sed DEP DEPA DEP1 DEP2
- install-exec-local: install-binPROGRAMS $(bin_PROGRAMS) $(noinst_PROGRAMS)
- @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//' -e 's/cxxfilt/$(DEMANGLER_NAME)/'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
-- $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//' -e 's/cxxfilt/$(DEMANGLER_NAME)/'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
-+ echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p ${DESTDIR}$(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//' -e 's/cxxfilt/$(DEMANGLER_NAME)/'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
-+ $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p ${DESTDIR}$(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//' -e 's/cxxfilt/$(DEMANGLER_NAME)/'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
- else :; fi; \
- done
-- $(mkinstalldirs) $(tooldir)/bin
-+ $(mkinstalldirs) ${DESTDIR}$(tooldir)/bin
- for i in $(TOOL_PROGS); do \
- if [ -f $$i$(EXEEXT) ]; then \
- j=`echo $$i | sed -e 's/-new//'`; \
- k=`echo $$j | sed '$(transform)'`; \
- if [ "$(bindir)/$$k$(EXEEXT)" != "$(tooldir)/bin/$$j$(EXEEXT)" ]; then \
-- rm -f $(tooldir)/bin/$$j$(EXEEXT); \
-- ln $(bindir)/$$k$(EXEEXT) $(tooldir)/bin/$$j$(EXEEXT) >/dev/null 2>/dev/null \
-- || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$i$(EXEEXT) $(tooldir)/bin/$$j$(EXEEXT); \
-+ rm -f ${DESTDIR}$(tooldir)/bin/$$j$(EXEEXT); \
-+ ln ${DESTDIR}$(bindir)/$$k$(EXEEXT) ${DESTDIR}$(tooldir)/bin/$$j$(EXEEXT) >/dev/null 2>/dev/null \
-+ || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$i$(EXEEXT) ${DESTDIR}$(tooldir)/bin/$$j$(EXEEXT); \
- fi; \
- else true; \
- fi; \
diff --git a/cross/h8300-hms-binutils/patches/patch-af b/cross/h8300-hms-binutils/patches/patch-af
deleted file mode 100644
index a308bbdccda..00000000000
--- a/cross/h8300-hms-binutils/patches/patch-af
+++ /dev/null
@@ -1,32 +0,0 @@
-$NetBSD: patch-af,v 1.1 2010/02/08 05:18:37 dholland Exp $
-
-DESTDIR support
-
---- ../binutils-2.12.1/binutils/Makefile.in.orig 2002-04-04 16:20:11.000000000 +0000
-+++ ../binutils-2.12.1/binutils/Makefile.in
-@@ -1059,19 +1059,19 @@ mostlyclean-local:
- install-exec-local: install-binPROGRAMS $(bin_PROGRAMS) $(noinst_PROGRAMS)
- @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//' -e 's/cxxfilt/$(DEMANGLER_NAME)/'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
-- $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//' -e 's/cxxfilt/$(DEMANGLER_NAME)/'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
-+ echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p ${DESTDIR}$(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//' -e 's/cxxfilt/$(DEMANGLER_NAME)/'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
-+ $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p ${DESTDIR}$(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//' -e 's/cxxfilt/$(DEMANGLER_NAME)/'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
- else :; fi; \
- done
-- $(mkinstalldirs) $(tooldir)/bin
-+ $(mkinstalldirs) ${DESTDIR}$(tooldir)/bin
- for i in $(TOOL_PROGS); do \
- if [ -f $$i$(EXEEXT) ]; then \
- j=`echo $$i | sed -e 's/-new//'`; \
- k=`echo $$j | sed '$(transform)'`; \
- if [ "$(bindir)/$$k$(EXEEXT)" != "$(tooldir)/bin/$$j$(EXEEXT)" ]; then \
-- rm -f $(tooldir)/bin/$$j$(EXEEXT); \
-- ln $(bindir)/$$k$(EXEEXT) $(tooldir)/bin/$$j$(EXEEXT) >/dev/null 2>/dev/null \
-- || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$i$(EXEEXT) $(tooldir)/bin/$$j$(EXEEXT); \
-+ rm -f ${DESTDIR}$(tooldir)/bin/$$j$(EXEEXT); \
-+ ln ${DESTDIR}$(bindir)/$$k$(EXEEXT) ${DESTDIR}$(tooldir)/bin/$$j$(EXEEXT) >/dev/null 2>/dev/null \
-+ || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$i$(EXEEXT) ${DESTDIR}$(tooldir)/bin/$$j$(EXEEXT); \
- fi; \
- else true; \
- fi; \
diff --git a/cross/h8300-hms-binutils/patches/patch-ag b/cross/h8300-hms-binutils/patches/patch-ag
deleted file mode 100644
index 814f8fe9b47..00000000000
--- a/cross/h8300-hms-binutils/patches/patch-ag
+++ /dev/null
@@ -1,39 +0,0 @@
-$NetBSD: patch-ag,v 1.1 2010/02/08 05:18:38 dholland Exp $
-
-DESTDIR support
-
---- ../binutils-2.12.1/ld/Makefile.am.orig 2002-05-09 14:50:49.000000000 +0000
-+++ ../binutils-2.12.1/ld/Makefile.am
-@@ -1118,24 +1118,24 @@ CLEANFILES = dep.sed DEP DEPA DEP1 DEP2
- .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
diff --git a/cross/h8300-hms-binutils/patches/patch-ah b/cross/h8300-hms-binutils/patches/patch-ah
deleted file mode 100644
index 3c0a99d5416..00000000000
--- a/cross/h8300-hms-binutils/patches/patch-ah
+++ /dev/null
@@ -1,39 +0,0 @@
-$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
diff --git a/cross/h8300-hms-binutils/patches/patch-ai b/cross/h8300-hms-binutils/patches/patch-ai
deleted file mode 100644
index 3da7c6dba93..00000000000
--- a/cross/h8300-hms-binutils/patches/patch-ai
+++ /dev/null
@@ -1,27 +0,0 @@
-$NetBSD: patch-ai,v 1.1 2010/02/08 05:18:38 dholland Exp $
-
-DESTDIR support
-
---- ../binutils-2.12.1/etc/Makefile.in.orig 2002-01-26 21:35:45.000000000 +0000
-+++ ../binutils-2.12.1/etc/Makefile.in
-@@ -68,17 +68,17 @@ info:
- done
-
- install-info: info
-- $(SHELL) $(srcdir)/../mkinstalldirs $(infodir)
-+ $(SHELL) $(srcdir)/../mkinstalldirs ${DESTDIR}$(infodir)
- if test ! -f standards.info; then cd $(srcdir); fi; \
- if test -f standards.info; then \
- for i in standards.info*; do \
-- $(INSTALL_DATA) $$i $(infodir)/$$i; \
-+ $(INSTALL_DATA) $$i ${DESTDIR}$(infodir)/$$i; \
- done; \
- fi
- if test ! -f configure.info; then cd $(srcdir); fi; \
- if test -f configure.info; then \
- for i in configure.info*; do \
-- $(INSTALL_DATA) $$i $(infodir)/$$i; \
-+ $(INSTALL_DATA) $$i ${DESTDIR}$(infodir)/$$i; \
- done; \
- fi
-
diff --git a/cross/h8300-hms-binutils/patches/patch-aj b/cross/h8300-hms-binutils/patches/patch-aj
deleted file mode 100644
index 490f72a6d7d..00000000000
--- a/cross/h8300-hms-binutils/patches/patch-aj
+++ /dev/null
@@ -1,72 +0,0 @@
-$NetBSD: patch-aj,v 1.1 2010/02/08 05:18:38 dholland Exp $
-
-DESTDIR support
-
---- ../binutils-2.12.1/bfd/po/Make-in.orig 2001-11-22 16:21:01.000000000 +0000
-+++ ../binutils-2.12.1/bfd/po/Make-in
-@@ -124,9 +124,9 @@ install-data: install-data-@USE_NLS@
- install-data-no: all
- install-data-yes: all
- if test -r $(MKINSTALLDIRS); then \
-- $(MKINSTALLDIRS) $(datadir); \
-+ $(MKINSTALLDIRS) ${DESTDIR}$(datadir); \
- else \
-- $(top_srcdir)/mkinstalldirs $(datadir); \
-+ $(top_srcdir)/mkinstalldirs ${DESTDIR}$(datadir); \
- fi
- @catalogs='$(CATALOGS)'; \
- for cat in $$catalogs; do \
-@@ -138,27 +138,27 @@ install-data-yes: all
- lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
- dir=$$destdir/$$lang/LC_MESSAGES; \
- if test -r $(MKINSTALLDIRS); then \
-- $(MKINSTALLDIRS) $$dir; \
-+ $(MKINSTALLDIRS) ${DESTDIR}$$dir; \
- else \
-- $(top_srcdir)/mkinstalldirs $$dir; \
-+ $(top_srcdir)/mkinstalldirs ${DESTDIR}$$dir; \
- fi; \
- if test -r $$cat; then \
-- $(INSTALL_DATA) $$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \
-- echo "installing $$cat as $$dir/$(PACKAGE)$(INSTOBJEXT)"; \
-+ $(INSTALL_DATA) $$cat ${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT); \
-+ echo "installing $$cat as ${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT)"; \
- else \
-- $(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \
-+ $(INSTALL_DATA) $(srcdir)/$$cat ${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT); \
- echo "installing $(srcdir)/$$cat as" \
-- "$$dir/$(PACKAGE)$(INSTOBJEXT)"; \
-+ "${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT)"; \
- fi; \
- if test -r $$cat.m; then \
-- $(INSTALL_DATA) $$cat.m $$dir/$(PACKAGE)$(INSTOBJEXT).m; \
-- echo "installing $$cat.m as $$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
-+ $(INSTALL_DATA) $$cat.m ${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT).m; \
-+ echo "installing $$cat.m as ${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
- else \
- if test -r $(srcdir)/$$cat.m ; then \
- $(INSTALL_DATA) $(srcdir)/$$cat.m \
-- $$dir/$(PACKAGE)$(INSTOBJEXT).m; \
-+ ${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT).m; \
- echo "installing $(srcdir)/$$cat as" \
-- "$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
-+ "${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
- else \
- true; \
- fi; \
-@@ -166,12 +166,12 @@ install-data-yes: all
- done
- if test "$(PACKAGE)" = "gettext"; then \
- if test -r $(MKINSTALLDIRS); then \
-- $(MKINSTALLDIRS) $(gettextsrcdir); \
-+ $(MKINSTALLDIRS) ${DESTDIR}$(gettextsrcdir); \
- else \
-- $(top_srcdir)/mkinstalldirs $(gettextsrcdir); \
-+ $(top_srcdir)/mkinstalldirs ${DESTDIR}$(gettextsrcdir); \
- fi; \
- $(INSTALL_DATA) $(srcdir)/Makefile.in.in \
-- $(gettextsrcdir)/Makefile.in.in; \
-+ ${DESTDIR}$(gettextsrcdir)/Makefile.in.in; \
- else \
- : ; \
- fi
diff --git a/cross/h8300-hms-binutils/patches/patch-ak b/cross/h8300-hms-binutils/patches/patch-ak
deleted file mode 100644
index 1700712d02b..00000000000
--- a/cross/h8300-hms-binutils/patches/patch-ak
+++ /dev/null
@@ -1,72 +0,0 @@
-$NetBSD: patch-ak,v 1.1 2010/02/08 05:18:38 dholland Exp $
-
-DESTDIR support
-
---- ../binutils-2.12.1/opcodes/po/Make-in.orig 1999-05-03 07:29:01.000000000 +0000
-+++ ../binutils-2.12.1/opcodes/po/Make-in
-@@ -111,9 +111,9 @@ install-data: install-data-@USE_NLS@
- install-data-no: all
- install-data-yes: all
- if test -r $(MKINSTALLDIRS); then \
-- $(MKINSTALLDIRS) $(datadir); \
-+ $(MKINSTALLDIRS) ${DESTDIR}$(datadir); \
- else \
-- $(top_srcdir)/mkinstalldirs $(datadir); \
-+ $(top_srcdir)/mkinstalldirs ${DESTDIR}$(datadir); \
- fi
- @catalogs='$(CATALOGS)'; \
- for cat in $$catalogs; do \
-@@ -125,27 +125,27 @@ install-data-yes: all
- lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
- dir=$$destdir/$$lang/LC_MESSAGES; \
- if test -r $(MKINSTALLDIRS); then \
-- $(MKINSTALLDIRS) $$dir; \
-+ $(MKINSTALLDIRS) ${DESTDIR}$$dir; \
- else \
-- $(top_srcdir)/mkinstalldirs $$dir; \
-+ $(top_srcdir)/mkinstalldirs ${DESTDIR}$$dir; \
- fi; \
- if test -r $$cat; then \
-- $(INSTALL_DATA) $$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \
-- echo "installing $$cat as $$dir/$(PACKAGE)$(INSTOBJEXT)"; \
-+ $(INSTALL_DATA) $$cat ${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT); \
-+ echo "installing $$cat as ${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT)"; \
- else \
-- $(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \
-+ $(INSTALL_DATA) $(srcdir)/$$cat ${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT); \
- echo "installing $(srcdir)/$$cat as" \
-- "$$dir/$(PACKAGE)$(INSTOBJEXT)"; \
-+ "${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT)"; \
- fi; \
- if test -r $$cat.m; then \
-- $(INSTALL_DATA) $$cat.m $$dir/$(PACKAGE)$(INSTOBJEXT).m; \
-- echo "installing $$cat.m as $$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
-+ $(INSTALL_DATA) $$cat.m ${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT).m; \
-+ echo "installing $$cat.m as ${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
- else \
- if test -r $(srcdir)/$$cat.m ; then \
- $(INSTALL_DATA) $(srcdir)/$$cat.m \
-- $$dir/$(PACKAGE)$(INSTOBJEXT).m; \
-+ ${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT).m; \
- echo "installing $(srcdir)/$$cat as" \
-- "$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
-+ "${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
- else \
- true; \
- fi; \
-@@ -153,12 +153,12 @@ install-data-yes: all
- done
- if test "$(PACKAGE)" = "gettext"; then \
- if test -r $(MKINSTALLDIRS); then \
-- $(MKINSTALLDIRS) $(gettextsrcdir); \
-+ $(MKINSTALLDIRS) ${DESTDIR}$(gettextsrcdir); \
- else \
-- $(top_srcdir)/mkinstalldirs $(gettextsrcdir); \
-+ $(top_srcdir)/mkinstalldirs ${DESTDIR}$(gettextsrcdir); \
- fi; \
- $(INSTALL_DATA) $(srcdir)/Makefile.in.in \
-- $(gettextsrcdir)/Makefile.in.in; \
-+ ${DESTDIR}$(gettextsrcdir)/Makefile.in.in; \
- else \
- : ; \
- fi
diff --git a/cross/h8300-hms-binutils/patches/patch-al b/cross/h8300-hms-binutils/patches/patch-al
deleted file mode 100644
index 72f9be66206..00000000000
--- a/cross/h8300-hms-binutils/patches/patch-al
+++ /dev/null
@@ -1,72 +0,0 @@
-$NetBSD: patch-al,v 1.1 2010/02/08 05:18:38 dholland Exp $
-
-DESTDIR support
-
---- ../binutils-2.12.1/binutils/po/Make-in.orig 1999-05-03 07:29:10.000000000 +0000
-+++ ../binutils-2.12.1/binutils/po/Make-in
-@@ -111,9 +111,9 @@ install-data: install-data-@USE_NLS@
- install-data-no: all
- install-data-yes: all
- if test -r $(MKINSTALLDIRS); then \
-- $(MKINSTALLDIRS) $(datadir); \
-+ $(MKINSTALLDIRS) ${DESTDIR}$(datadir); \
- else \
-- $(top_srcdir)/mkinstalldirs $(datadir); \
-+ $(top_srcdir)/mkinstalldirs ${DESTDIR}$(datadir); \
- fi
- @catalogs='$(CATALOGS)'; \
- for cat in $$catalogs; do \
-@@ -125,27 +125,27 @@ install-data-yes: all
- lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
- dir=$$destdir/$$lang/LC_MESSAGES; \
- if test -r $(MKINSTALLDIRS); then \
-- $(MKINSTALLDIRS) $$dir; \
-+ $(MKINSTALLDIRS) ${DESTDIR}$$dir; \
- else \
-- $(top_srcdir)/mkinstalldirs $$dir; \
-+ $(top_srcdir)/mkinstalldirs ${DESTDIR}$$dir; \
- fi; \
- if test -r $$cat; then \
-- $(INSTALL_DATA) $$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \
-- echo "installing $$cat as $$dir/$(PACKAGE)$(INSTOBJEXT)"; \
-+ $(INSTALL_DATA) $$cat ${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT); \
-+ echo "installing $$cat as ${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT)"; \
- else \
-- $(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \
-+ $(INSTALL_DATA) $(srcdir)/$$cat ${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT); \
- echo "installing $(srcdir)/$$cat as" \
-- "$$dir/$(PACKAGE)$(INSTOBJEXT)"; \
-+ "${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT)"; \
- fi; \
- if test -r $$cat.m; then \
-- $(INSTALL_DATA) $$cat.m $$dir/$(PACKAGE)$(INSTOBJEXT).m; \
-- echo "installing $$cat.m as $$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
-+ $(INSTALL_DATA) $$cat.m ${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT).m; \
-+ echo "installing $$cat.m as ${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
- else \
- if test -r $(srcdir)/$$cat.m ; then \
- $(INSTALL_DATA) $(srcdir)/$$cat.m \
-- $$dir/$(PACKAGE)$(INSTOBJEXT).m; \
-+ ${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT).m; \
- echo "installing $(srcdir)/$$cat as" \
-- "$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
-+ "${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
- else \
- true; \
- fi; \
-@@ -153,12 +153,12 @@ install-data-yes: all
- done
- if test "$(PACKAGE)" = "gettext"; then \
- if test -r $(MKINSTALLDIRS); then \
-- $(MKINSTALLDIRS) $(gettextsrcdir); \
-+ $(MKINSTALLDIRS) ${DESTDIR}$(gettextsrcdir); \
- else \
-- $(top_srcdir)/mkinstalldirs $(gettextsrcdir); \
-+ $(top_srcdir)/mkinstalldirs ${DESTDIR}$(gettextsrcdir); \
- fi; \
- $(INSTALL_DATA) $(srcdir)/Makefile.in.in \
-- $(gettextsrcdir)/Makefile.in.in; \
-+ ${DESTDIR}$(gettextsrcdir)/Makefile.in.in; \
- else \
- : ; \
- fi
diff --git a/cross/h8300-hms-binutils/patches/patch-am b/cross/h8300-hms-binutils/patches/patch-am
deleted file mode 100644
index 9cdf8e98fd5..00000000000
--- a/cross/h8300-hms-binutils/patches/patch-am
+++ /dev/null
@@ -1,72 +0,0 @@
-$NetBSD: patch-am,v 1.1 2010/02/08 05:18:38 dholland Exp $
-
-DESTDIR support
-
---- ../binutils-2.12.1/gas/po/Make-in.orig 1999-05-03 07:28:45.000000000 +0000
-+++ ../binutils-2.12.1/gas/po/Make-in
-@@ -111,9 +111,9 @@ install-data: install-data-@USE_NLS@
- install-data-no: all
- install-data-yes: all
- if test -r $(MKINSTALLDIRS); then \
-- $(MKINSTALLDIRS) $(datadir); \
-+ $(MKINSTALLDIRS) ${DESTDIR}$(datadir); \
- else \
-- $(top_srcdir)/mkinstalldirs $(datadir); \
-+ $(top_srcdir)/mkinstalldirs ${DESTDIR}$(datadir); \
- fi
- @catalogs='$(CATALOGS)'; \
- for cat in $$catalogs; do \
-@@ -125,27 +125,27 @@ install-data-yes: all
- lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
- dir=$$destdir/$$lang/LC_MESSAGES; \
- if test -r $(MKINSTALLDIRS); then \
-- $(MKINSTALLDIRS) $$dir; \
-+ $(MKINSTALLDIRS) ${DESTDIR}$$dir; \
- else \
-- $(top_srcdir)/mkinstalldirs $$dir; \
-+ $(top_srcdir)/mkinstalldirs ${DESTDIR}$$dir; \
- fi; \
- if test -r $$cat; then \
-- $(INSTALL_DATA) $$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \
-- echo "installing $$cat as $$dir/$(PACKAGE)$(INSTOBJEXT)"; \
-+ $(INSTALL_DATA) $$cat ${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT); \
-+ echo "installing $$cat as ${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT)"; \
- else \
-- $(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \
-+ $(INSTALL_DATA) $(srcdir)/$$cat ${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT); \
- echo "installing $(srcdir)/$$cat as" \
-- "$$dir/$(PACKAGE)$(INSTOBJEXT)"; \
-+ "${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT)"; \
- fi; \
- if test -r $$cat.m; then \
-- $(INSTALL_DATA) $$cat.m $$dir/$(PACKAGE)$(INSTOBJEXT).m; \
-- echo "installing $$cat.m as $$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
-+ $(INSTALL_DATA) $$cat.m ${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT).m; \
-+ echo "installing $$cat.m as ${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
- else \
- if test -r $(srcdir)/$$cat.m ; then \
- $(INSTALL_DATA) $(srcdir)/$$cat.m \
-- $$dir/$(PACKAGE)$(INSTOBJEXT).m; \
-+ ${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT).m; \
- echo "installing $(srcdir)/$$cat as" \
-- "$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
-+ "${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
- else \
- true; \
- fi; \
-@@ -153,12 +153,12 @@ install-data-yes: all
- done
- if test "$(PACKAGE)" = "gettext"; then \
- if test -r $(MKINSTALLDIRS); then \
-- $(MKINSTALLDIRS) $(gettextsrcdir); \
-+ $(MKINSTALLDIRS) ${DESTDIR}$(gettextsrcdir); \
- else \
-- $(top_srcdir)/mkinstalldirs $(gettextsrcdir); \
-+ $(top_srcdir)/mkinstalldirs ${DESTDIR}$(gettextsrcdir); \
- fi; \
- $(INSTALL_DATA) $(srcdir)/Makefile.in.in \
-- $(gettextsrcdir)/Makefile.in.in; \
-+ ${DESTDIR}$(gettextsrcdir)/Makefile.in.in; \
- else \
- : ; \
- fi
diff --git a/cross/h8300-hms-binutils/patches/patch-an b/cross/h8300-hms-binutils/patches/patch-an
deleted file mode 100644
index 1cfb551c840..00000000000
--- a/cross/h8300-hms-binutils/patches/patch-an
+++ /dev/null
@@ -1,72 +0,0 @@
-$NetBSD: patch-an,v 1.1 2010/02/08 05:18:38 dholland Exp $
-
-DESTDIR support
-
---- ../binutils-2.12.1/gprof/po/Make-in.orig 1999-05-03 07:29:11.000000000 +0000
-+++ ../binutils-2.12.1/gprof/po/Make-in
-@@ -111,9 +111,9 @@ install-data: install-data-@USE_NLS@
- install-data-no: all
- install-data-yes: all
- if test -r $(MKINSTALLDIRS); then \
-- $(MKINSTALLDIRS) $(datadir); \
-+ $(MKINSTALLDIRS) ${DESTDIR}$(datadir); \
- else \
-- $(top_srcdir)/mkinstalldirs $(datadir); \
-+ $(top_srcdir)/mkinstalldirs ${DESTDIR}$(datadir); \
- fi
- @catalogs='$(CATALOGS)'; \
- for cat in $$catalogs; do \
-@@ -125,27 +125,27 @@ install-data-yes: all
- lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
- dir=$$destdir/$$lang/LC_MESSAGES; \
- if test -r $(MKINSTALLDIRS); then \
-- $(MKINSTALLDIRS) $$dir; \
-+ $(MKINSTALLDIRS) ${DESTDIR}$$dir; \
- else \
-- $(top_srcdir)/mkinstalldirs $$dir; \
-+ $(top_srcdir)/mkinstalldirs ${DESTDIR}$$dir; \
- fi; \
- if test -r $$cat; then \
-- $(INSTALL_DATA) $$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \
-- echo "installing $$cat as $$dir/$(PACKAGE)$(INSTOBJEXT)"; \
-+ $(INSTALL_DATA) $$cat ${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT); \
-+ echo "installing $$cat as ${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT)"; \
- else \
-- $(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \
-+ $(INSTALL_DATA) $(srcdir)/$$cat ${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT); \
- echo "installing $(srcdir)/$$cat as" \
-- "$$dir/$(PACKAGE)$(INSTOBJEXT)"; \
-+ "${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT)"; \
- fi; \
- if test -r $$cat.m; then \
-- $(INSTALL_DATA) $$cat.m $$dir/$(PACKAGE)$(INSTOBJEXT).m; \
-- echo "installing $$cat.m as $$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
-+ $(INSTALL_DATA) $$cat.m ${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT).m; \
-+ echo "installing $$cat.m as ${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
- else \
- if test -r $(srcdir)/$$cat.m ; then \
- $(INSTALL_DATA) $(srcdir)/$$cat.m \
-- $$dir/$(PACKAGE)$(INSTOBJEXT).m; \
-+ ${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT).m; \
- echo "installing $(srcdir)/$$cat as" \
-- "$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
-+ "${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
- else \
- true; \
- fi; \
-@@ -153,12 +153,12 @@ install-data-yes: all
- done
- if test "$(PACKAGE)" = "gettext"; then \
- if test -r $(MKINSTALLDIRS); then \
-- $(MKINSTALLDIRS) $(gettextsrcdir); \
-+ $(MKINSTALLDIRS) ${DESTDIR}$(gettextsrcdir); \
- else \
-- $(top_srcdir)/mkinstalldirs $(gettextsrcdir); \
-+ $(top_srcdir)/mkinstalldirs ${DESTDIR}$(gettextsrcdir); \
- fi; \
- $(INSTALL_DATA) $(srcdir)/Makefile.in.in \
-- $(gettextsrcdir)/Makefile.in.in; \
-+ ${DESTDIR}$(gettextsrcdir)/Makefile.in.in; \
- else \
- : ; \
- fi
diff --git a/cross/h8300-hms-binutils/patches/patch-ao b/cross/h8300-hms-binutils/patches/patch-ao
deleted file mode 100644
index 8295ac0abb6..00000000000
--- a/cross/h8300-hms-binutils/patches/patch-ao
+++ /dev/null
@@ -1,72 +0,0 @@
-$NetBSD: patch-ao,v 1.1 2010/02/08 05:18:38 dholland Exp $
-
-DESTDIR support
-
---- ../binutils-2.12.1/ld/po/Make-in.orig 1999-05-03 07:29:07.000000000 +0000
-+++ ../binutils-2.12.1/ld/po/Make-in
-@@ -111,9 +111,9 @@ install-data: install-data-@USE_NLS@
- install-data-no: all
- install-data-yes: all
- if test -r $(MKINSTALLDIRS); then \
-- $(MKINSTALLDIRS) $(datadir); \
-+ $(MKINSTALLDIRS) ${DESTDIR}$(datadir); \
- else \
-- $(top_srcdir)/mkinstalldirs $(datadir); \
-+ $(top_srcdir)/mkinstalldirs ${DESTDIR}$(datadir); \
- fi
- @catalogs='$(CATALOGS)'; \
- for cat in $$catalogs; do \
-@@ -125,27 +125,27 @@ install-data-yes: all
- lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
- dir=$$destdir/$$lang/LC_MESSAGES; \
- if test -r $(MKINSTALLDIRS); then \
-- $(MKINSTALLDIRS) $$dir; \
-+ $(MKINSTALLDIRS) ${DESTDIR}$$dir; \
- else \
-- $(top_srcdir)/mkinstalldirs $$dir; \
-+ $(top_srcdir)/mkinstalldirs ${DESTDIR}$$dir; \
- fi; \
- if test -r $$cat; then \
-- $(INSTALL_DATA) $$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \
-- echo "installing $$cat as $$dir/$(PACKAGE)$(INSTOBJEXT)"; \
-+ $(INSTALL_DATA) $$cat ${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT); \
-+ echo "installing $$cat as ${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT)"; \
- else \
-- $(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \
-+ $(INSTALL_DATA) $(srcdir)/$$cat ${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT); \
- echo "installing $(srcdir)/$$cat as" \
-- "$$dir/$(PACKAGE)$(INSTOBJEXT)"; \
-+ "${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT)"; \
- fi; \
- if test -r $$cat.m; then \
-- $(INSTALL_DATA) $$cat.m $$dir/$(PACKAGE)$(INSTOBJEXT).m; \
-- echo "installing $$cat.m as $$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
-+ $(INSTALL_DATA) $$cat.m ${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT).m; \
-+ echo "installing $$cat.m as ${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
- else \
- if test -r $(srcdir)/$$cat.m ; then \
- $(INSTALL_DATA) $(srcdir)/$$cat.m \
-- $$dir/$(PACKAGE)$(INSTOBJEXT).m; \
-+ ${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT).m; \
- echo "installing $(srcdir)/$$cat as" \
-- "$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
-+ "${DESTDIR}$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
- else \
- true; \
- fi; \
-@@ -153,12 +153,12 @@ install-data-yes: all
- done
- if test "$(PACKAGE)" = "gettext"; then \
- if test -r $(MKINSTALLDIRS); then \
-- $(MKINSTALLDIRS) $(gettextsrcdir); \
-+ $(MKINSTALLDIRS) ${DESTDIR}$(gettextsrcdir); \
- else \
-- $(top_srcdir)/mkinstalldirs $(gettextsrcdir); \
-+ $(top_srcdir)/mkinstalldirs ${DESTDIR}$(gettextsrcdir); \
- fi; \
- $(INSTALL_DATA) $(srcdir)/Makefile.in.in \
-- $(gettextsrcdir)/Makefile.in.in; \
-+ ${DESTDIR}$(gettextsrcdir)/Makefile.in.in; \
- else \
- : ; \
- fi
diff --git a/cross/h8300-hms-binutils/patches/patch-ap b/cross/h8300-hms-binutils/patches/patch-ap
deleted file mode 100644
index 6677d0a5ac8..00000000000
--- a/cross/h8300-hms-binutils/patches/patch-ap
+++ /dev/null
@@ -1,28 +0,0 @@
-$NetBSD: patch-ap,v 1.1 2010/02/08 05:18:38 dholland Exp $
-
-DESTDIR support.
-
---- ../binutils-2.12.1/libiberty/Makefile.in~ 2002-01-22 20:14:52.000000000 +0000
-+++ ../binutils-2.12.1/libiberty/Makefile.in
-@@ -237,15 +237,15 @@ INSTALL_DEST = @INSTALL_DEST@
- install: install_to_$(INSTALL_DEST) install-subdir
-
- install_to_libdir: all
-- $(INSTALL_DATA) $(TARGETLIB) $(libdir)$(MULTISUBDIR)/$(TARGETLIB)n
-- ( cd $(libdir)$(MULTISUBDIR) ; $(RANLIB) $(TARGETLIB)n )
-- mv -f $(libdir)$(MULTISUBDIR)/$(TARGETLIB)n $(libdir)$(MULTISUBDIR)/$(TARGETLIB)
-+ $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB)n
-+ ( cd $(DESTDIR)$(libdir)$(MULTISUBDIR) ; $(RANLIB) $(TARGETLIB)n )
-+ mv -f $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB)n $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB)
- @$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
-
- install_to_tooldir: all
-- $(INSTALL_DATA) $(TARGETLIB) $(tooldir)/lib$(MULTISUBDIR)/$(TARGETLIB)n
-- ( cd $(tooldir)/lib$(MULTISUBDIR) ; $(RANLIB) $(TARGETLIB)n )
-- mv -f $(tooldir)/lib$(MULTISUBDIR)/$(TARGETLIB)n $(tooldir)/lib$(MULTISUBDIR)/$(TARGETLIB)
-+ $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(tooldir)/lib$(MULTISUBDIR)/$(TARGETLIB)n
-+ ( cd $(DESTDIR)$(tooldir)/lib$(MULTISUBDIR) ; $(RANLIB) $(TARGETLIB)n )
-+ mv -f $(DESTDIR)$(tooldir)/lib$(MULTISUBDIR)/$(TARGETLIB)n $(DESTDIR)$(tooldir)/lib$(MULTISUBDIR)/$(TARGETLIB)
- @$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
-
- # needed-list is used by libstdc++. NEEDED is the list of functions
diff --git a/cross/h8300-hms-gcc/DESCR b/cross/h8300-hms-gcc/DESCR
deleted file mode 100644
index 8b8efa5243d..00000000000
--- a/cross/h8300-hms-gcc/DESCR
+++ /dev/null
@@ -1 +0,0 @@
-gcc for hitachi h8300-hms cross-compile environment
diff --git a/cross/h8300-hms-gcc/Makefile b/cross/h8300-hms-gcc/Makefile
deleted file mode 100644
index 0343a658470..00000000000
--- a/cross/h8300-hms-gcc/Makefile
+++ /dev/null
@@ -1,55 +0,0 @@
-# $NetBSD: Makefile,v 1.31 2019/06/08 10:53:28 rillig Exp $
-
-DISTNAME= gcc-core-3.1
-PKGNAME= cross-h8300-hms-gcc-3.1
-PKGREVISION= 6
-CATEGORIES= cross
-MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-3.1/}
-DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
- ${DISTNAME:S/-core-/-g++-/}${EXTRACT_SUFX} \
- newlib-1.10.0.tar.gz
-
-SITES.newlib-1.10.0.tar.gz= https://www.sourceware.org/pub/newlib/
-PATCH_SITES= ${MASTER_SITE_SOURCEFORGE:=h8300-hms/}
-PATCHFILES= h8300-hms-gcc-3.1-1.patch
-PATCH_DIST_ARGS= -d ${SRCDIR} -E -p1
-
-MAINTAINER= pkgsrc-users@NetBSD.org
-HOMEPAGE= #empty
-COMMENT= GCC compiler for h8300-hms
-
-DEPENDS+= cross-h8300-hms-binutils-[0-9]*:../../cross/h8300-hms-binutils
-
-H8300_PREFIX= ${PREFIX}/libexec/cross-h8300-hms
-
-WRKSRC= ${WRKDIR}/objdir
-USE_TOOLS+= gmake
-HAS_CONFIGURE= yes
-CONFIGURE_ARGS+= --prefix=${H8300_PREFIX:Q}
-CONFIGURE_ARGS+= --infodir=${H8300_PREFIX}/gcc
-CONFIGURE_ARGS+= --target=h8300-hms
-CONFIGURE_ARGS+= --enable-languages=c,c++
-CONFIGURE_ARGS+= --with-newlib
-CONFIGURE_SCRIPT= ${SRCDIR}/configure
-SRCDIR= ${WRKDIR}/gcc-3.1
-MAKE_ENV+= SHELL=${CONFIG_SHELL}
-BUILD_TARGET= CFLAGS="-O2 -fomit-frame-pointer" all
-INSTALLATION_DIRS+= bin libexec/cross-h8300-hms/h8300-hms/bin
-INFO_FILES= yes
-
-GCC_REQD+= 2.8.0
-
-post-extract:
- ${LN} -s ${WRKDIR}/newlib-1.10.0/newlib ${SRCDIR}/newlib
- ${MKDIR} ${WRKSRC}
-
-post-install:
- for f in h8300-hms-cpp h8300-hms-gcc \
- h8300-hms-c++ h8300-hms-g++ \
- h8300-hms-gccbug h8300-hms-gcov \
- ; do \
- ${LN} -s ../libexec/cross-h8300-hms/bin/"$$f" \
- ${DESTDIR}${PREFIX}/bin/"$$f" || exit 1; \
- done
-
-.include "../../mk/bsd.pkg.mk"
diff --git a/cross/h8300-hms-gcc/PLIST b/cross/h8300-hms-gcc/PLIST
deleted file mode 100644
index de98a5ab184..00000000000
--- a/cross/h8300-hms-gcc/PLIST
+++ /dev/null
@@ -1,142 +0,0 @@
-@comment $NetBSD: PLIST,v 1.9 2012/01/02 01:25:25 dholland Exp $
-bin/h8300-hms-c++
-bin/h8300-hms-cpp
-bin/h8300-hms-g++
-bin/h8300-hms-gcc
-bin/h8300-hms-gccbug
-bin/h8300-hms-gcov
-libexec/cross-h8300-hms/bin/h8300-hms-c++
-libexec/cross-h8300-hms/bin/h8300-hms-cpp
-libexec/cross-h8300-hms/bin/h8300-hms-g++
-libexec/cross-h8300-hms/bin/h8300-hms-gcc
-libexec/cross-h8300-hms/bin/h8300-hms-gccbug
-libexec/cross-h8300-hms/bin/h8300-hms-gcov
-libexec/cross-h8300-hms/gcc/cpp.info
-libexec/cross-h8300-hms/gcc/cppinternals.info
-libexec/cross-h8300-hms/gcc/gcc.info
-libexec/cross-h8300-hms/gcc/gccint.info
-libexec/cross-h8300-hms/h8300-hms/bin/c++
-libexec/cross-h8300-hms/h8300-hms/bin/g++
-libexec/cross-h8300-hms/h8300-hms/bin/gcc
-libexec/cross-h8300-hms/h8300-hms/include/_ansi.h
-libexec/cross-h8300-hms/h8300-hms/include/_syslist.h
-libexec/cross-h8300-hms/h8300-hms/include/alloca.h
-libexec/cross-h8300-hms/h8300-hms/include/ar.h
-libexec/cross-h8300-hms/h8300-hms/include/assert.h
-libexec/cross-h8300-hms/h8300-hms/include/ctype.h
-libexec/cross-h8300-hms/h8300-hms/include/dirent.h
-libexec/cross-h8300-hms/h8300-hms/include/errno.h
-libexec/cross-h8300-hms/h8300-hms/include/fastmath.h
-libexec/cross-h8300-hms/h8300-hms/include/fcntl.h
-libexec/cross-h8300-hms/h8300-hms/include/grp.h
-libexec/cross-h8300-hms/h8300-hms/include/ieeefp.h
-libexec/cross-h8300-hms/h8300-hms/include/locale.h
-libexec/cross-h8300-hms/h8300-hms/include/machine/ansi.h
-libexec/cross-h8300-hms/h8300-hms/include/machine/fastmath.h
-libexec/cross-h8300-hms/h8300-hms/include/machine/ieeefp.h
-libexec/cross-h8300-hms/h8300-hms/include/machine/setjmp-dj.h
-libexec/cross-h8300-hms/h8300-hms/include/machine/setjmp.h
-libexec/cross-h8300-hms/h8300-hms/include/machine/time.h
-libexec/cross-h8300-hms/h8300-hms/include/machine/types.h
-libexec/cross-h8300-hms/h8300-hms/include/malloc.h
-libexec/cross-h8300-hms/h8300-hms/include/math.h
-libexec/cross-h8300-hms/h8300-hms/include/paths.h
-libexec/cross-h8300-hms/h8300-hms/include/process.h
-libexec/cross-h8300-hms/h8300-hms/include/pthread.h
-libexec/cross-h8300-hms/h8300-hms/include/pwd.h
-libexec/cross-h8300-hms/h8300-hms/include/reent.h
-libexec/cross-h8300-hms/h8300-hms/include/regdef.h
-libexec/cross-h8300-hms/h8300-hms/include/setjmp.h
-libexec/cross-h8300-hms/h8300-hms/include/signal.h
-libexec/cross-h8300-hms/h8300-hms/include/stdio.h
-libexec/cross-h8300-hms/h8300-hms/include/stdlib.h
-libexec/cross-h8300-hms/h8300-hms/include/string.h
-libexec/cross-h8300-hms/h8300-hms/include/sys/_types.h
-libexec/cross-h8300-hms/h8300-hms/include/sys/config.h
-libexec/cross-h8300-hms/h8300-hms/include/sys/dirent.h
-libexec/cross-h8300-hms/h8300-hms/include/sys/errno.h
-libexec/cross-h8300-hms/h8300-hms/include/sys/fcntl.h
-libexec/cross-h8300-hms/h8300-hms/include/sys/features.h
-libexec/cross-h8300-hms/h8300-hms/include/sys/file.h
-libexec/cross-h8300-hms/h8300-hms/include/sys/param.h
-libexec/cross-h8300-hms/h8300-hms/include/sys/reent.h
-libexec/cross-h8300-hms/h8300-hms/include/sys/resource.h
-libexec/cross-h8300-hms/h8300-hms/include/sys/sched.h
-libexec/cross-h8300-hms/h8300-hms/include/sys/signal.h
-libexec/cross-h8300-hms/h8300-hms/include/sys/stat-dj.h
-libexec/cross-h8300-hms/h8300-hms/include/sys/stat.h
-libexec/cross-h8300-hms/h8300-hms/include/sys/time.h
-libexec/cross-h8300-hms/h8300-hms/include/sys/timeb.h
-libexec/cross-h8300-hms/h8300-hms/include/sys/times.h
-libexec/cross-h8300-hms/h8300-hms/include/sys/types.h
-libexec/cross-h8300-hms/h8300-hms/include/sys/unistd.h
-libexec/cross-h8300-hms/h8300-hms/include/sys/utime.h
-libexec/cross-h8300-hms/h8300-hms/include/sys/wait.h
-libexec/cross-h8300-hms/h8300-hms/include/termios.h
-libexec/cross-h8300-hms/h8300-hms/include/time.h
-libexec/cross-h8300-hms/h8300-hms/include/unctrl.h
-libexec/cross-h8300-hms/h8300-hms/include/unistd.h
-libexec/cross-h8300-hms/h8300-hms/include/utime.h
-libexec/cross-h8300-hms/h8300-hms/include/utmp.h
-libexec/cross-h8300-hms/h8300-hms/lib/crt0.o
-libexec/cross-h8300-hms/h8300-hms/lib/h8300h/crt0.o
-libexec/cross-h8300-hms/h8300-hms/lib/h8300h/int32/crt0.o
-libexec/cross-h8300-hms/h8300-hms/lib/h8300h/int32/libc.a
-libexec/cross-h8300-hms/h8300-hms/lib/h8300h/int32/libg.a
-libexec/cross-h8300-hms/h8300-hms/lib/h8300h/int32/libiberty.a
-libexec/cross-h8300-hms/h8300-hms/lib/h8300h/int32/libm.a
-libexec/cross-h8300-hms/h8300-hms/lib/h8300h/libc.a
-libexec/cross-h8300-hms/h8300-hms/lib/h8300h/libg.a
-libexec/cross-h8300-hms/h8300-hms/lib/h8300h/libiberty.a
-libexec/cross-h8300-hms/h8300-hms/lib/h8300h/libm.a
-libexec/cross-h8300-hms/h8300-hms/lib/h8300s/crt0.o
-libexec/cross-h8300-hms/h8300-hms/lib/h8300s/int32/crt0.o
-libexec/cross-h8300-hms/h8300-hms/lib/h8300s/int32/libc.a
-libexec/cross-h8300-hms/h8300-hms/lib/h8300s/int32/libg.a
-libexec/cross-h8300-hms/h8300-hms/lib/h8300s/int32/libiberty.a
-libexec/cross-h8300-hms/h8300-hms/lib/h8300s/int32/libm.a
-libexec/cross-h8300-hms/h8300-hms/lib/h8300s/libc.a
-libexec/cross-h8300-hms/h8300-hms/lib/h8300s/libg.a
-libexec/cross-h8300-hms/h8300-hms/lib/h8300s/libiberty.a
-libexec/cross-h8300-hms/h8300-hms/lib/h8300s/libm.a
-libexec/cross-h8300-hms/h8300-hms/lib/libc.a
-libexec/cross-h8300-hms/h8300-hms/lib/libg.a
-libexec/cross-h8300-hms/h8300-hms/lib/libiberty.a
-libexec/cross-h8300-hms/h8300-hms/lib/libm.a
-libexec/cross-h8300-hms/lib/gcc-lib/h8300-hms/3.1/cc1
-libexec/cross-h8300-hms/lib/gcc-lib/h8300-hms/3.1/cc1plus
-libexec/cross-h8300-hms/lib/gcc-lib/h8300-hms/3.1/collect2
-libexec/cross-h8300-hms/lib/gcc-lib/h8300-hms/3.1/cpp0
-libexec/cross-h8300-hms/lib/gcc-lib/h8300-hms/3.1/h8300h/int32/libgcc.a
-libexec/cross-h8300-hms/lib/gcc-lib/h8300-hms/3.1/h8300h/libgcc.a
-libexec/cross-h8300-hms/lib/gcc-lib/h8300-hms/3.1/h8300s/int32/libgcc.a
-libexec/cross-h8300-hms/lib/gcc-lib/h8300-hms/3.1/h8300s/libgcc.a
-libexec/cross-h8300-hms/lib/gcc-lib/h8300-hms/3.1/include/README
-libexec/cross-h8300-hms/lib/gcc-lib/h8300-hms/3.1/include/fixed
-libexec/cross-h8300-hms/lib/gcc-lib/h8300-hms/3.1/include/float.h
-libexec/cross-h8300-hms/lib/gcc-lib/h8300-hms/3.1/include/iso646.h
-libexec/cross-h8300-hms/lib/gcc-lib/h8300-hms/3.1/include/limits.h
-libexec/cross-h8300-hms/lib/gcc-lib/h8300-hms/3.1/include/stdarg.h
-libexec/cross-h8300-hms/lib/gcc-lib/h8300-hms/3.1/include/stdbool.h
-libexec/cross-h8300-hms/lib/gcc-lib/h8300-hms/3.1/include/stddef.h
-libexec/cross-h8300-hms/lib/gcc-lib/h8300-hms/3.1/include/syslimits.h
-libexec/cross-h8300-hms/lib/gcc-lib/h8300-hms/3.1/include/varargs.h
-libexec/cross-h8300-hms/lib/gcc-lib/h8300-hms/3.1/libgcc.a
-libexec/cross-h8300-hms/lib/gcc-lib/h8300-hms/3.1/specs
-libexec/cross-h8300-hms/lib/gcc-lib/h8300-hms/3.1/tradcpp0
-libexec/cross-h8300-hms/lib/libiberty.a
-libexec/cross-h8300-hms/man/man1/cpp.1
-libexec/cross-h8300-hms/man/man1/gcov.1
-libexec/cross-h8300-hms/man/man1/h8300-hms-g++.1
-libexec/cross-h8300-hms/man/man1/h8300-hms-gcc.1
-libexec/cross-h8300-hms/man/man7/fsf-funding.7
-libexec/cross-h8300-hms/man/man7/gfdl.7
-libexec/cross-h8300-hms/man/man7/gpl.7
-libexec/cross-h8300-hms/share/locale/da/LC_MESSAGES/gcc.mo
-libexec/cross-h8300-hms/share/locale/el/LC_MESSAGES/gcc.mo
-libexec/cross-h8300-hms/share/locale/es/LC_MESSAGES/gcc.mo
-libexec/cross-h8300-hms/share/locale/fr/LC_MESSAGES/gcc.mo
-libexec/cross-h8300-hms/share/locale/ja/LC_MESSAGES/gcc.mo
-libexec/cross-h8300-hms/share/locale/nl/LC_MESSAGES/gcc.mo
-libexec/cross-h8300-hms/share/locale/sv/LC_MESSAGES/gcc.mo
-libexec/cross-h8300-hms/share/locale/tr/LC_MESSAGES/gcc.mo
diff --git a/cross/h8300-hms-gcc/PLIST.Darwin b/cross/h8300-hms-gcc/PLIST.Darwin
deleted file mode 100644
index d74ac9a74d6..00000000000
--- a/cross/h8300-hms-gcc/PLIST.Darwin
+++ /dev/null
@@ -1,3 +0,0 @@
-@comment $NetBSD: PLIST.Darwin,v 1.1 2014/12/26 21:29:18 dholland Exp $
-libexec/cross-h8300-hms/lib/charset.alias
-libexec/cross-h8300-hms/share/locale/locale.alias
diff --git a/cross/h8300-hms-gcc/distinfo b/cross/h8300-hms-gcc/distinfo
deleted file mode 100644
index 708ccc701b1..00000000000
--- a/cross/h8300-hms-gcc/distinfo
+++ /dev/null
@@ -1,26 +0,0 @@
-$NetBSD: distinfo,v 1.9 2015/11/03 00:47:44 agc Exp $
-
-SHA1 (gcc-core-3.1.tar.gz) = e93048803611b5c1e0dd745d81b43d6e34bca026
-RMD160 (gcc-core-3.1.tar.gz) = d6fe75142280778c952af0717acfa4a2cc500623
-SHA512 (gcc-core-3.1.tar.gz) = 8f9c96bc5f58ce66f66a269e92a10fe3a6498cf942fc741c3666e73cdd7b41a00c6405aac0e9fff21af1d140cce0009764e256887d99b57aecf2b9d26d0d2813
-Size (gcc-core-3.1.tar.gz) = 13381094 bytes
-SHA1 (gcc-g++-3.1.tar.gz) = 294cae404a8f66640c04668502778c3e321c9e82
-RMD160 (gcc-g++-3.1.tar.gz) = b4b45f76797bfa41544866c24dcd39dc84074193
-SHA512 (gcc-g++-3.1.tar.gz) = 3d5fe25794ca2b3e989795d4c788d1831bcbb49580d906ba98cde050c2c941fe50a46f9af576d141190b1b178a1c4b9f5994972ae204da50eac6d02d79ab146f
-Size (gcc-g++-3.1.tar.gz) = 2461395 bytes
-SHA1 (newlib-1.10.0.tar.gz) = ca0747e49623cce37967243928d883247a389207
-RMD160 (newlib-1.10.0.tar.gz) = c5cd6ae5d8912848a6c3985fd74a78f4826c92a6
-SHA512 (newlib-1.10.0.tar.gz) = c78c266d8f0beb5d9b46b4e672c50fabfcb9d684171df10b8ad59e492d87022ef4d8ef29eef04579ec2757802a6fd01ff0c4554084c2a522845c3b22284e8326
-Size (newlib-1.10.0.tar.gz) = 3647395 bytes
-SHA1 (h8300-hms-gcc-3.1-1.patch) = 6a5ad1f579ca71cfee114a02df26a58103cf4f04
-RMD160 (h8300-hms-gcc-3.1-1.patch) = ab3114544c8a6bcd531e4b5b7a4fed8aaf8e9150
-SHA512 (h8300-hms-gcc-3.1-1.patch) = 7ef3dc95f6e57000a15a8364e573581f3bc6d7d0ed065360d952fd1def9f890767ad67e303c40c2631a94a4f8ae4c12aee0afe62dc52378393760910cc04e405
-Size (h8300-hms-gcc-3.1-1.patch) = 61226 bytes
-SHA1 (patch-.._gcc-3.1_gcc_cp_cfns.h) = 60990c54e11caf5d7d8071ae1cab3612a6e6ae50
-SHA1 (patch-aa) = 10a9769d913c207469e891d1bd49ba492e37d226
-SHA1 (patch-ab) = c73ed16f2faf661e4f39a98f68c51c66e8101b19
-SHA1 (patch-ac) = c4db8deb5cebe30b2ca16f2c9b07287ea3323b2e
-SHA1 (patch-ad) = be068d27d2c17baf2343e46a7e1483ba20e91ec7
-SHA1 (patch-ae) = 23ca3e8b25c709e553dbf2db74a9a74f4419bc9e
-SHA1 (patch-af) = 36c1ccb1fc4c958d8f3e3386e071d2c8e3141730
-SHA1 (patch-ag) = 9192dde2e2a721ee2d054206ba4844cd4312c737
diff --git a/cross/h8300-hms-gcc/patches/patch-.._gcc-3.1_gcc_cp_cfns.h b/cross/h8300-hms-gcc/patches/patch-.._gcc-3.1_gcc_cp_cfns.h
deleted file mode 100644
index b46159bc400..00000000000
--- a/cross/h8300-hms-gcc/patches/patch-.._gcc-3.1_gcc_cp_cfns.h
+++ /dev/null
@@ -1,24 +0,0 @@
-$NetBSD: patch-.._gcc-3.1_gcc_cp_cfns.h,v 1.1 2013/03/28 21:19:02 joerg Exp $
-
---- ../gcc-3.1/gcc/cp/cfns.h.orig 2013-03-28 14:02:55.000000000 +0000
-+++ ../gcc-3.1/gcc/cp/cfns.h
-@@ -4,9 +4,6 @@
- __inline
- #endif
- static unsigned int hash PARAMS ((const char *, unsigned int));
--#ifdef __GNUC__
--__inline
--#endif
- const char * libc_name_p PARAMS ((const char *, unsigned int));
- /* maximum key range = 1020, duplicates = 1 */
-
-@@ -69,9 +66,6 @@ hash (str, len)
- return hval + asso_values[(unsigned char)str[len - 1]];
- }
-
--#ifdef __GNUC__
--__inline
--#endif
- const char *
- libc_name_p (str, len)
- register const char *str;
diff --git a/cross/h8300-hms-gcc/patches/patch-aa b/cross/h8300-hms-gcc/patches/patch-aa
deleted file mode 100644
index 6767d560b2a..00000000000
--- a/cross/h8300-hms-gcc/patches/patch-aa
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: patch-aa,v 1.2 2010/02/14 21:30:51 dholland Exp $
-
-Patch out illegal C constructs.
-
---- ../gcc-3.1/include/obstack.h.orig 2001-03-14 19:44:38.000000000 +0000
-+++ ../gcc-3.1/include/obstack.h
-@@ -423,7 +423,7 @@ __extension__ \
- ({ struct obstack *__o = (OBSTACK); \
- if (__o->next_free + sizeof (void *) > __o->chunk_limit) \
- _obstack_newchunk (__o, sizeof (void *)); \
-- *((void **)__o->next_free)++ = ((void *)datum); \
-+ ((void **)(__o->next_free+=sizeof(void *)))[-1] = ((void *)datum); \
- (void) 0; })
-
- # define obstack_int_grow(OBSTACK,datum) \
diff --git a/cross/h8300-hms-gcc/patches/patch-ab b/cross/h8300-hms-gcc/patches/patch-ab
deleted file mode 100644
index 5c5ecf9d83e..00000000000
--- a/cross/h8300-hms-gcc/patches/patch-ab
+++ /dev/null
@@ -1,106 +0,0 @@
-$NetBSD: patch-ab,v 1.2 2010/02/14 21:30:51 dholland Exp $
-
-Patch out illegal C constructs.
-
---- ../gcc-3.1/gcc/cp/decl.c~ 2002-05-03 18:55:23.000000000 +0000
-+++ ../gcc-3.1/gcc/cp/decl.c
-@@ -458,6 +458,11 @@ struct binding_level
- ? cp_function_chain->bindings \
- : scope_chain->bindings)
-
-+#define current_binding_level__LVALUE \
-+ (*(cfun && cp_function_chain->bindings \
-+ ? &cp_function_chain->bindings \
-+ : &scope_chain->bindings))
-+
- /* The binding level of the current class, if any. */
-
- #define class_binding_level scope_chain->class_bindings
-@@ -507,7 +512,7 @@ push_binding_level (newlevel, tag_transp
- are active. */
- memset ((char*) newlevel, 0, sizeof (struct binding_level));
- newlevel->level_chain = current_binding_level;
-- current_binding_level = newlevel;
-+ current_binding_level__LVALUE = newlevel;
- newlevel->tag_transparent = tag_transparent;
- newlevel->more_cleanups_ok = 1;
-
-@@ -563,7 +568,7 @@ pop_binding_level ()
- #endif /* defined(DEBUG_CP_BINDING_LEVELS) */
- {
- register struct binding_level *level = current_binding_level;
-- current_binding_level = current_binding_level->level_chain;
-+ current_binding_level__LVALUE = current_binding_level->level_chain;
- level->level_chain = free_binding_level;
- #if 0 /* defined(DEBUG_CP_BINDING_LEVELS) */
- if (level->binding_depth != binding_depth)
-@@ -578,7 +583,7 @@ static void
- suspend_binding_level ()
- {
- if (class_binding_level)
-- current_binding_level = class_binding_level;
-+ current_binding_level__LVALUE = class_binding_level;
-
- if (global_binding_level)
- {
-@@ -600,7 +605,7 @@ suspend_binding_level ()
- }
- is_class_level = 0;
- #endif /* defined(DEBUG_CP_BINDING_LEVELS) */
-- current_binding_level = current_binding_level->level_chain;
-+ current_binding_level__LVALUE = current_binding_level->level_chain;
- find_class_binding_level ();
- }
-
-@@ -613,7 +618,7 @@ resume_binding_level (b)
- my_friendly_assert(!class_binding_level, 386);
- /* Also, resuming a non-directly nested namespace is a no-no. */
- my_friendly_assert(b->level_chain == current_binding_level, 386);
-- current_binding_level = b;
-+ current_binding_level__LVALUE = b;
- #if defined(DEBUG_CP_BINDING_LEVELS)
- b->binding_depth = binding_depth;
- indent ();
-@@ -4292,9 +4297,9 @@ pushdecl_with_scope (x, level)
- else
- {
- b = current_binding_level;
-- current_binding_level = level;
-+ current_binding_level__LVALUE = level;
- x = pushdecl (x);
-- current_binding_level = b;
-+ current_binding_level__LVALUE = b;
- }
- current_function_decl = function_decl;
- return x;
-@@ -6515,7 +6520,7 @@ cxx_init_decl_processing ()
- current_lang_name = lang_name_c;
-
- current_function_decl = NULL_TREE;
-- current_binding_level = NULL_BINDING_LEVEL;
-+ current_binding_level__LVALUE = NULL_BINDING_LEVEL;
- free_binding_level = NULL_BINDING_LEVEL;
-
- build_common_tree_nodes (flag_signed_char);
-@@ -10080,10 +10085,10 @@ grokdeclarator (declarator, declspecs, d
- if (decl_context == NORMAL && !toplevel_bindings_p ())
- {
- struct binding_level *b = current_binding_level;
-- current_binding_level = b->level_chain;
-+ current_binding_level__LVALUE = b->level_chain;
- if (current_binding_level != 0 && toplevel_bindings_p ())
- decl_context = PARM;
-- current_binding_level = b;
-+ current_binding_level__LVALUE = b;
- }
-
- if (name == NULL)
-@@ -13720,7 +13725,7 @@ start_function (declspecs, declarator, a
- FIXME factor out the non-RTL stuff. */
- bl = current_binding_level;
- init_function_start (decl1, input_filename, lineno);
-- current_binding_level = bl;
-+ current_binding_level__LVALUE = bl;
-
- /* Even though we're inside a function body, we still don't want to
- call expand_expr to calculate the size of a variable-sized array.
diff --git a/cross/h8300-hms-gcc/patches/patch-ac b/cross/h8300-hms-gcc/patches/patch-ac
deleted file mode 100644
index 17ae2d97459..00000000000
--- a/cross/h8300-hms-gcc/patches/patch-ac
+++ /dev/null
@@ -1,14 +0,0 @@
-$NetBSD: patch-ac,v 1.1 2010/02/14 21:30:00 dholland Exp $
-
-DESTDIR support.
-
---- ../gcc-3.1/Makefile.in~ 2002-04-15 18:59:13.000000000 +0000
-+++ ../gcc-3.1/Makefile.in
-@@ -361,6 +361,7 @@ BASE_FLAGS_TO_PASS = \
- "CXXFLAGS=$(CXXFLAGS)" \
- "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
- "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
-+ "DESTDIR=$(DESTDIR)" \
- "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
- "INSTALL=$(INSTALL)" \
- "INSTALL_DATA=$(INSTALL_DATA)" \
diff --git a/cross/h8300-hms-gcc/patches/patch-ad b/cross/h8300-hms-gcc/patches/patch-ad
deleted file mode 100644
index 944b3cefa5e..00000000000
--- a/cross/h8300-hms-gcc/patches/patch-ad
+++ /dev/null
@@ -1,389 +0,0 @@
-$NetBSD: patch-ad,v 1.1 2010/02/14 21:30:00 dholland Exp $
-
-DESTDIR support.
-
---- ../gcc-3.1/gcc/Makefile.in~ 2002-05-08 23:18:36.000000000 +0000
-+++ ../gcc-3.1/gcc/Makefile.in
-@@ -2169,10 +2169,10 @@ stmp-fixinc: fixinc.sh gsyslimits.h
- # but fixincludes does not take such arguments.
- if [ "$(SYSTEM_HEADER_DIR)" = "$(build_tooldir)/sys-include" ] \
- && [ -d $(build_tooldir)/sys-include ]; then \
-- if [ -d $(libdir) ] ; then true ; else mkdir $(libdir) ; fi; \
-- if [ -d $(libdir)/gcc-lib ] ; then true ; else mkdir $(libdir)/gcc-lib; fi; \
-- if [ -d $(libdir)/gcc-lib/$(target_alias) ] ; then true ; else mkdir $(libdir)/gcc-lib/$(target_alias) ; fi; \
-- if [ -d $(libdir)/gcc-lib/$(target_alias)/$(version) ] ; then true ; else mkdir $(libdir)/gcc-lib/$(target_alias)/$(version) ; fi; \
-+ if [ -d $(DESTDIR)$(libdir) ] ; then true ; else mkdir $(DESTDIR)$(libdir) ; fi; \
-+ if [ -d $(DESTDIR)$(libdir)/gcc-lib ] ; then true ; else mkdir $(DESTDIR)$(libdir)/gcc-lib; fi; \
-+ if [ -d $(DESTDIR)$(libdir)/gcc-lib/$(target_alias) ] ; then true ; else mkdir $(DESTDIR)$(libdir)/gcc-lib/$(target_alias) ; fi; \
-+ if [ -d $(DESTDIR)$(libdir)/gcc-lib/$(target_alias)/$(version) ] ; then true ; else mkdir $(DESTDIR)$(libdir)/gcc-lib/$(target_alias)/$(version) ; fi; \
- else true; fi
- $(STAMP) stmp-fixinc
-
-@@ -2531,180 +2531,180 @@ install: install-common $(INSTALL_HEADER
- # Handle cpp installation.
- install-cpp: cpp$(exeext)
- -if [ -f gcc-cross$(exeext) ] ; then \
-- rm -f $(bindir)/$(CPP_CROSS_NAME)$(exeext); \
-- $(INSTALL_PROGRAM) -m 755 cpp$(exeext) $(bindir)/$(CPP_CROSS_NAME)$(exeext); \
-+ rm -f $(DESTDIR)$(bindir)/$(CPP_CROSS_NAME)$(exeext); \
-+ $(INSTALL_PROGRAM) -m 755 cpp$(exeext) $(DESTDIR)$(bindir)/$(CPP_CROSS_NAME)$(exeext); \
- if [ x$(cpp_install_dir) != x ]; then \
-- rm -f $(prefix)/$(cpp_install_dir)/$(CPP_CROSS_NAME)$(exeext); \
-- $(INSTALL_PROGRAM) -m 755 cpp$(exeext) $(prefix)/$(cpp_install_dir)/$(CPP_CROSS_NAME)$(exeext); \
-+ rm -f $(DESTDIR)$(prefix)/$(cpp_install_dir)/$(CPP_CROSS_NAME)$(exeext); \
-+ $(INSTALL_PROGRAM) -m 755 cpp$(exeext) $(DESTDIR)$(prefix)/$(cpp_install_dir)/$(CPP_CROSS_NAME)$(exeext); \
- else true; fi; \
- else \
-- rm -f $(bindir)/$(CPP_INSTALL_NAME)$(exeext); \
-- $(INSTALL_PROGRAM) -m 755 cpp$(exeext) $(bindir)/$(CPP_INSTALL_NAME)$(exeext); \
-+ rm -f $(DESTDIR)$(bindir)/$(CPP_INSTALL_NAME)$(exeext); \
-+ $(INSTALL_PROGRAM) -m 755 cpp$(exeext) $(DESTDIR)$(bindir)/$(CPP_INSTALL_NAME)$(exeext); \
- if [ x$(cpp_install_dir) != x ]; then \
-- rm -f $(prefix)/$(cpp_install_dir)/$(CPP_INSTALL_NAME)$(exeext); \
-- $(INSTALL_PROGRAM) -m 755 cpp$(exeext) $(prefix)/$(cpp_install_dir)/$(CPP_INSTALL_NAME)$(exeext); \
-+ rm -f $(DESTDIR)$(prefix)/$(cpp_install_dir)/$(CPP_INSTALL_NAME)$(exeext); \
-+ $(INSTALL_PROGRAM) -m 755 cpp$(exeext) $(DESTDIR)$(prefix)/$(cpp_install_dir)/$(CPP_INSTALL_NAME)$(exeext); \
- else true; fi; \
- fi
-
- uninstall-cpp:
-- -rm -f $(bindir)/$(CPP_INSTALL_NAME)$(exeext)
-- -rm -f $(bindir)/$(CPP_CROSS_NAME)$(exeext)
-+ -rm -f $(DESTDIR)$(bindir)/$(CPP_INSTALL_NAME)$(exeext)
-+ -rm -f $(DESTDIR)$(bindir)/$(CPP_CROSS_NAME)$(exeext)
- -if [ x$(cpp_install_dir) != x ]; then \
-- rm -f $(prefix)/$(cpp_install_dir)/$(CPP_INSTALL_NAME)$(exeext); \
-- rm -f $(prefix)/$(cpp_install_dir)/$(CPP_CROSS_NAME)$(exeext); \
-+ rm -f $(DESTDIR)$(prefix)/$(cpp_install_dir)/$(CPP_INSTALL_NAME)$(exeext); \
-+ rm -f $(DESTDIR)$(prefix)/$(cpp_install_dir)/$(CPP_CROSS_NAME)$(exeext); \
- else true; fi
-
- # Create the installation directories.
- installdirs:
-- -if [ -d $(prefix) ] ; then true ; else mkdir $(prefix) ; chmod a+rx $(prefix) ; fi
-- -if [ -d $(exec_prefix) ] ; then true ; else mkdir $(exec_prefix) ; chmod a+rx $(exec_prefix) ; fi
-- -if [ -d $(libdir) ] ; then true ; else mkdir $(libdir) ; chmod a+rx $(libdir) ; fi
-- -if [ -d $(libdir)/gcc-lib ] ; then true ; else mkdir $(libdir)/gcc-lib ; chmod a+rx $(libdir)/gcc-lib ; fi
-+ -if [ -d $(DESTDIR)$(prefix) ] ; then true ; else mkdir $(DESTDIR)$(prefix) ; chmod a+rx $(DESTDIR)$(prefix) ; fi
-+ -if [ -d $(DESTDIR)$(exec_prefix) ] ; then true ; else mkdir $(DESTDIR)$(exec_prefix) ; chmod a+rx $(DESTDIR)$(exec_prefix) ; fi
-+ -if [ -d $(DESTDIR)$(libdir) ] ; then true ; else mkdir $(DESTDIR)$(libdir) ; chmod a+rx $(DESTDIR)$(libdir) ; fi
-+ -if [ -d $(DESTDIR)$(libdir)/gcc-lib ] ; then true ; else mkdir $(DESTDIR)$(libdir)/gcc-lib ; chmod a+rx $(DESTDIR)$(libdir)/gcc-lib ; fi
- # This dir isn't currently searched by cpp.
--# -if [ -d $(libdir)/gcc-lib/include ] ; then true ; else mkdir $(libdir)/gcc-lib/include ; chmod a+rx $(libdir)/gcc-lib/include ; fi
-+# -if [ -d $(DESTDIR)$(libdir)/gcc-lib/include ] ; then true ; else mkdir $(DESTDIR)$(libdir)/gcc-lib/include ; chmod a+rx $(DESTDIR)$(libdir)/gcc-lib/include ; fi
- -fdir= ; for dir in `echo $(libsubdir) | tr '/' ' '`; do \
- fdir=$${fdir}/$${dir}; \
-- if [ -d $${fdir} ] ; then true ; else mkdir $${fdir}; chmod a+rx $${fdir}; fi ; \
-+ if [ -d $(DESTDIR)$${fdir} ] ; then true ; else mkdir $(DESTDIR)$${fdir}; chmod a+rx $(DESTDIR)$${fdir}; fi ; \
- done
-- -if [ -d $(bindir) ] ; then true ; else mkdir $(bindir) ; chmod a+rx $(bindir) ; fi
-- -if [ -d $(includedir) ] ; then true ; else mkdir $(includedir) ; chmod a+rx $(includedir) ; fi
-- -if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; chmod a+rx $(infodir) ; fi
-- -if [ -d $(slibdir) ] ; then true ; else mkdir $(slibdir) ; chmod a+rx $(slibdir) ; fi
-+ -if [ -d $(DESTDIR)$(bindir) ] ; then true ; else mkdir $(DESTDIR)$(bindir) ; chmod a+rx $(DESTDIR)$(bindir) ; fi
-+ -if [ -d $(DESTDIR)$(includedir) ] ; then true ; else mkdir $(DESTDIR)$(includedir) ; chmod a+rx $(DESTDIR)$(includedir) ; fi
-+ -if [ -d $(DESTDIR)$(infodir) ] ; then true ; else mkdir $(DESTDIR)$(infodir) ; chmod a+rx $(DESTDIR)$(infodir) ; fi
-+ -if [ -d $(DESTDIR)$(slibdir) ] ; then true ; else mkdir $(DESTDIR)$(slibdir) ; chmod a+rx $(DESTDIR)$(slibdir) ; fi
- # We don't use mkdir -p to create the parents of man1dir,
- # because some systems don't support it.
- # Instead, we use this technique to create the immediate parent of man1dir.
- -parent=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \
-- if [ -d $$parent ] ; then true ; else mkdir $$parent ; chmod a+rx $$parent ; fi
-- -if [ -d $(man1dir) ] ; then true ; else mkdir $(man1dir) ; chmod a+rx $(man1dir) ; fi
-- -if [ -d $(man7dir) ] ; then true ; else mkdir $(man7dir) ; chmod a+rx $(man7dir) ; fi
-+ if [ -d $(DESTDIR)$$parent ] ; then true ; else mkdir $(DESTDIR)$$parent ; chmod a+rx $(DESTDIR)$$parent ; fi
-+ -if [ -d $(DESTDIR)$(man1dir) ] ; then true ; else mkdir $(DESTDIR)$(man1dir) ; chmod a+rx $(DESTDIR)$(man1dir) ; fi
-+ -if [ -d $(DESTDIR)$(man7dir) ] ; then true ; else mkdir $(DESTDIR)$(man7dir) ; chmod a+rx $(DESTDIR)$(man7dir) ; fi
-
- # Install the compiler executables built during cross compilation.
- install-common: native $(EXTRA_PARTS) lang.install-common
- for file in $(COMPILERS); do \
- if [ -f $$file ] ; then \
-- rm -f $(libsubdir)/$$file; \
-- $(INSTALL_PROGRAM) $$file $(libsubdir)/$$file; \
-+ rm -f $(DESTDIR)$(libsubdir)/$$file; \
-+ $(INSTALL_PROGRAM) $$file $(DESTDIR)$(libsubdir)/$$file; \
- else true; \
- fi; \
- done
- for file in $(EXTRA_PASSES) $(EXTRA_PROGRAMS) $(USE_COLLECT2) ..; do \
- if [ x"$$file" != x.. ]; then \
-- rm -f $(libsubdir)/$$file; \
-- $(INSTALL_PROGRAM) $$file $(libsubdir)/$$file; \
-+ rm -f $(DESTDIR)$(libsubdir)/$$file; \
-+ $(INSTALL_PROGRAM) $$file $(DESTDIR)$(libsubdir)/$$file; \
- else true; fi; \
- done
- for file in $(EXTRA_PARTS) ..; do \
- if [ x"$$file" != x.. ]; then \
-- rm -f $(libsubdir)/$$file; \
-- $(INSTALL_DATA) $$file $(libsubdir)/$$file; \
-- chmod a-x $(libsubdir)/$$file; \
-+ rm -f $(DESTDIR)$(libsubdir)/$$file; \
-+ $(INSTALL_DATA) $$file $(DESTDIR)$(libsubdir)/$$file; \
-+ chmod a-x $(DESTDIR)$(libsubdir)/$$file; \
- else true; fi; \
- done
- # Don't mess with specs if it doesn't exist yet.
- -if [ -f specs ] ; then \
-- rm -f $(libsubdir)/specs; \
-- $(INSTALL_DATA) specs $(libsubdir)/specs; \
-- chmod a-x $(libsubdir)/specs; \
-+ rm -f $(DESTDIR)$(libsubdir)/specs; \
-+ $(INSTALL_DATA) specs $(DESTDIR)$(libsubdir)/specs; \
-+ chmod a-x $(DESTDIR)$(libsubdir)/specs; \
- fi
- # Install protoize if it was compiled.
- -if [ -f protoize$(exeext) ]; \
- then \
- if [ -f gcc-cross$(exeext) ] ; then \
-- rm -f $(bindir)/$(PROTOIZE_CROSS_NAME)$(exeext); \
-- $(INSTALL_PROGRAM) protoize$(exeext) $(bindir)/$(PROTOIZE_CROSS_NAME)$(exeext); \
-- rm -f $(bindir)/$(UNPROTOIZE_CROSS_NAME)$(exeext); \
-- $(INSTALL_PROGRAM) unprotoize$(exeext) $(bindir)/$(UNPROTOIZE_CROSS_NAME)$(exeext); \
-+ rm -f $(DESTDIR)$(bindir)/$(PROTOIZE_CROSS_NAME)$(exeext); \
-+ $(INSTALL_PROGRAM) protoize$(exeext) $(DESTDIR)$(bindir)/$(PROTOIZE_CROSS_NAME)$(exeext); \
-+ rm -f $(DESTDIR)$(bindir)/$(UNPROTOIZE_CROSS_NAME)$(exeext); \
-+ $(INSTALL_PROGRAM) unprotoize$(exeext) $(DESTDIR)$(bindir)/$(UNPROTOIZE_CROSS_NAME)$(exeext); \
- else \
-- rm -f $(bindir)/$(PROTOIZE_INSTALL_NAME)$(exeext); \
-- $(INSTALL_PROGRAM) protoize$(exeext) $(bindir)/$(PROTOIZE_INSTALL_NAME)$(exeext); \
-- rm -f $(bindir)/$(UNPROTOIZE_INSTALL_NAME)$(exeext); \
-- $(INSTALL_PROGRAM) unprotoize$(exeext) $(bindir)/$(UNPROTOIZE_INSTALL_NAME)$(exeext); \
-+ rm -f $(DESTDIR)$(bindir)/$(PROTOIZE_INSTALL_NAME)$(exeext); \
-+ $(INSTALL_PROGRAM) protoize$(exeext) $(DESTDIR)$(bindir)/$(PROTOIZE_INSTALL_NAME)$(exeext); \
-+ rm -f $(DESTDIR)$(bindir)/$(UNPROTOIZE_INSTALL_NAME)$(exeext); \
-+ $(INSTALL_PROGRAM) unprotoize$(exeext) $(DESTDIR)$(bindir)/$(UNPROTOIZE_INSTALL_NAME)$(exeext); \
- fi ; \
-- rm -f $(libsubdir)/SYSCALLS.c.X; \
-- $(INSTALL_DATA) SYSCALLS.c.X $(libsubdir)/SYSCALLS.c.X; \
-- chmod a-x $(libsubdir)/SYSCALLS.c.X; \
-+ rm -f $(DESTDIR)$(libsubdir)/SYSCALLS.c.X; \
-+ $(INSTALL_DATA) SYSCALLS.c.X $(DESTDIR)$(libsubdir)/SYSCALLS.c.X; \
-+ chmod a-x $(DESTDIR)$(libsubdir)/SYSCALLS.c.X; \
- fi
-- -rm -f $(libsubdir)/cpp0$(exeext)
-- $(INSTALL_PROGRAM) cpp0$(exeext) $(libsubdir)/cpp0$(exeext)
-- -rm -f $(libsubdir)/tradcpp0$(exeext)
-- $(INSTALL_PROGRAM) tradcpp0$(exeext) $(libsubdir)/tradcpp0$(exeext)
-+ -rm -f $(DESTDIR)$(libsubdir)/cpp0$(exeext)
-+ $(INSTALL_PROGRAM) cpp0$(exeext) $(DESTDIR)$(libsubdir)/cpp0$(exeext)
-+ -rm -f $(DESTDIR)$(libsubdir)/tradcpp0$(exeext)
-+ $(INSTALL_PROGRAM) tradcpp0$(exeext) $(DESTDIR)$(libsubdir)/tradcpp0$(exeext)
- # Install gcov if it was compiled.
- -if [ -f gcov$(exeext) ]; \
- then \
-- rm -f $(bindir)/gcov$(exeext); \
-- $(INSTALL_PROGRAM) gcov$(exeext) $(bindir)/$(GCOV_INSTALL_NAME)$(exeext); \
-+ rm -f $(DESTDIR)$(bindir)/gcov$(exeext); \
-+ $(INSTALL_PROGRAM) gcov$(exeext) $(DESTDIR)$(bindir)/$(GCOV_INSTALL_NAME)$(exeext); \
- fi
-- $(INSTALL_SCRIPT) gccbug $(bindir)/$(GCCBUG_INSTALL_NAME)
-+ $(INSTALL_SCRIPT) gccbug $(DESTDIR)$(bindir)/$(GCCBUG_INSTALL_NAME)
-
- # Install the driver program as $(target_alias)-gcc
- # and also as either gcc (if native) or $(gcc_tooldir)/bin/gcc.
- install-driver: installdirs xgcc$(exeext)
- -if [ -f gcc-cross$(exeext) ] ; then \
-- rm -f $(bindir)/$(GCC_CROSS_NAME)$(exeext); \
-- $(INSTALL_PROGRAM) gcc-cross$(exeext) $(bindir)/$(GCC_CROSS_NAME)$(exeext); \
-- if [ -d $(gcc_tooldir)/bin/. ] ; then \
-- rm -f $(gcc_tooldir)/bin/gcc$(exeext); \
-- $(INSTALL_PROGRAM) gcc-cross$(exeext) $(gcc_tooldir)/bin/gcc$(exeext); \
-+ rm -f $(DESTDIR)$(bindir)/$(GCC_CROSS_NAME)$(exeext); \
-+ $(INSTALL_PROGRAM) gcc-cross$(exeext) $(DESTDIR)$(bindir)/$(GCC_CROSS_NAME)$(exeext); \
-+ if [ -d $(DESTDIR)$(gcc_tooldir)/bin/. ] ; then \
-+ rm -f $(DESTDIR)$(gcc_tooldir)/bin/gcc$(exeext); \
-+ $(INSTALL_PROGRAM) gcc-cross$(exeext) $(DESTDIR)$(gcc_tooldir)/bin/gcc$(exeext); \
- else true; fi; \
- else \
-- rm -f $(bindir)/$(GCC_INSTALL_NAME)$(exeext); \
-- $(INSTALL_PROGRAM) xgcc$(exeext) $(bindir)/$(GCC_INSTALL_NAME)$(exeext); \
-- rm -f $(bindir)/$(target_alias)-gcc-1$(exeext); \
-- $(LN) $(bindir)/$(GCC_INSTALL_NAME)$(exeext) $(bindir)/$(target_alias)-gcc-1$(exeext); \
-- mv $(bindir)/$(target_alias)-gcc-1$(exeext) $(bindir)/$(GCC_TARGET_INSTALL_NAME)$(exeext); \
-+ rm -f $(DESTDIR)$(bindir)/$(GCC_INSTALL_NAME)$(exeext); \
-+ $(INSTALL_PROGRAM) xgcc$(exeext) $(DESTDIR)$(bindir)/$(GCC_INSTALL_NAME)$(exeext); \
-+ rm -f $(DESTDIR)$(bindir)/$(target_alias)-gcc-1$(exeext); \
-+ $(LN) $(DESTDIR)$(bindir)/$(GCC_INSTALL_NAME)$(exeext) $(DESTDIR)$(bindir)/$(target_alias)-gcc-1$(exeext); \
-+ mv $(DESTDIR)$(bindir)/$(target_alias)-gcc-1$(exeext) $(DESTDIR)$(bindir)/$(GCC_TARGET_INSTALL_NAME)$(exeext); \
- fi
-
- # Install the info files.
- # $(INSTALL_DATA) might be a relative pathname, so we can't cd into srcdir
- # to do the install.
- install-info: doc installdirs lang.install-info
-- -rm -f $(infodir)/cpp.info* $(infodir)/gcc.info*
-- -rm -f $(infodir)/cppinternals.info* $(infodir)/gccint.info*
-+ -rm -f $(DESTDIR)$(infodir)/cpp.info* $(DESTDIR)$(infodir)/gcc.info*
-+ -rm -f $(DESTDIR)$(infodir)/cppinternals.info* $(DESTDIR)$(infodir)/gccint.info*
- if [ -f $(docdir)/gcc.info ]; then \
- for f in $(docdir)/cpp.info* $(docdir)/gcc.info* \
- $(docdir)/cppinternals.info* $(docdir)/gccint.info*; do \
- realfile=`echo $$f | sed -e 's|.*/\([^/]*\)$$|\1|'`; \
-- $(INSTALL_DATA) $$f $(infodir)/$$realfile; \
-+ $(INSTALL_DATA) $$f $(DESTDIR)$(infodir)/$$realfile; \
- done; \
- else true; fi
- -if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
-- if [ -f $(infodir)/dir ] ; then \
-+ if [ -f $(DESTDIR)$(infodir)/dir ] ; then \
- for f in cpp.info gcc.info gccint.info cppinternals.info; do \
-- if [ -f $(infodir)/$$f ]; then \
-- install-info --dir-file=$(infodir)/dir $(infodir)/$$f; \
-+ if [ -f $(DESTDIR)$(infodir)/$$f ]; then \
-+ install-info --dir-file=$(DESTDIR)$(infodir)/dir $(DESTDIR)$(infodir)/$$f; \
- else true; fi; \
- done; \
- else true; fi; \
- else true; fi;
-- -chmod a-x $(infodir)/cpp.info* $(infodir)/gcc.info*
-- -chmod a-x $(infodir)/cppinternals.info* $(infodir)/gccint.info*
-+ -chmod a-x $(DESTDIR)$(infodir)/cpp.info* $(DESTDIR)$(infodir)/gcc.info*
-+ -chmod a-x $(DESTDIR)$(infodir)/cppinternals.info* $(DESTDIR)$(infodir)/gccint.info*
-
- # Install the man pages.
- install-man: installdirs $(GENERATED_MANPAGES) lang.install-man
- -if [ -f gcc-cross$(exeext) ] ; then \
-- rm -f $(man1dir)/$(GCC_CROSS_NAME)$(man1ext); \
-- $(INSTALL_DATA) $(docdir)/gcc.1 $(man1dir)/$(GCC_CROSS_NAME)$(man1ext); \
-- chmod a-x $(man1dir)/$(GCC_CROSS_NAME)$(man1ext); \
-+ rm -f $(DESTDIR)$(man1dir)/$(GCC_CROSS_NAME)$(man1ext); \
-+ $(INSTALL_DATA) $(docdir)/gcc.1 $(DESTDIR)$(man1dir)/$(GCC_CROSS_NAME)$(man1ext); \
-+ chmod a-x $(DESTDIR)$(man1dir)/$(GCC_CROSS_NAME)$(man1ext); \
- else \
-- rm -f $(man1dir)/$(GCC_INSTALL_NAME)$(man1ext); \
-- $(INSTALL_DATA) $(docdir)/gcc.1 $(man1dir)/$(GCC_INSTALL_NAME)$(man1ext); \
-- chmod a-x $(man1dir)/$(GCC_INSTALL_NAME)$(man1ext); \
-+ rm -f $(DESTDIR)$(man1dir)/$(GCC_INSTALL_NAME)$(man1ext); \
-+ $(INSTALL_DATA) $(docdir)/gcc.1 $(DESTDIR)$(man1dir)/$(GCC_INSTALL_NAME)$(man1ext); \
-+ chmod a-x $(DESTDIR)$(man1dir)/$(GCC_INSTALL_NAME)$(man1ext); \
- fi
-- -rm -f $(man1dir)/cpp$(man1ext)
-- -$(INSTALL_DATA) $(docdir)/cpp.1 $(man1dir)/cpp$(man1ext)
-- -chmod a-x $(man1dir)/cpp$(man1ext)
-- -rm -f $(man1dir)/gcov$(man1ext)
-- -$(INSTALL_DATA) $(docdir)/gcov.1 $(man1dir)/gcov$(man1ext)
-- -chmod a-x $(man1dir)/gcov$(man1ext)
-- -rm -f $(man7dir)/fsf-funding$(man7ext)
-- -$(INSTALL_DATA) $(docdir)/fsf-funding.7 $(man7dir)/fsf-funding$(man7ext)
-- -chmod a-x $(man7dir)/fsf-funding$(man7ext)
-- -rm -f $(man7dir)/gfdl$(man7ext)
-- -$(INSTALL_DATA) $(docdir)/gfdl.7 $(man7dir)/gfdl$(man7ext)
-- -chmod a-x $(man7dir)/gfdl$(man7ext)
-- -rm -f $(man7dir)/gpl$(man7ext)
-- -$(INSTALL_DATA) $(docdir)/gpl.7 $(man7dir)/gpl$(man7ext)
-- -chmod a-x $(man7dir)/gpl$(man7ext)
-+ -rm -f $(DESTDIR)$(man1dir)/cpp$(man1ext)
-+ -$(INSTALL_DATA) $(docdir)/cpp.1 $(DESTDIR)$(man1dir)/cpp$(man1ext)
-+ -chmod a-x $(DESTDIR)$(man1dir)/cpp$(man1ext)
-+ -rm -f $(DESTDIR)$(man1dir)/gcov$(man1ext)
-+ -$(INSTALL_DATA) $(docdir)/gcov.1 $(DESTDIR)$(man1dir)/gcov$(man1ext)
-+ -chmod a-x $(DESTDIR)$(man1dir)/gcov$(man1ext)
-+ -rm -f $(DESTDIR)$(man7dir)/fsf-funding$(man7ext)
-+ -$(INSTALL_DATA) $(docdir)/fsf-funding.7 $(DESTDIR)$(man7dir)/fsf-funding$(man7ext)
-+ -chmod a-x $(DESTDIR)$(man7dir)/fsf-funding$(man7ext)
-+ -rm -f $(DESTDIR)$(man7dir)/gfdl$(man7ext)
-+ -$(INSTALL_DATA) $(docdir)/gfdl.7 $(DESTDIR)$(man7dir)/gfdl$(man7ext)
-+ -chmod a-x $(DESTDIR)$(man7dir)/gfdl$(man7ext)
-+ -rm -f $(DESTDIR)$(man7dir)/gpl$(man7ext)
-+ -$(INSTALL_DATA) $(docdir)/gpl.7 $(DESTDIR)$(man7dir)/gpl$(man7ext)
-+ -chmod a-x $(DESTDIR)$(man7dir)/gpl$(man7ext)
-
- # Install the library.
- install-libgcc: libgcc.mk libgcc.a installdirs
-@@ -2763,23 +2763,23 @@ install-headers: $(INSTALL_HEADERS_DIR)
- # Fix symlinks to absolute paths in the installed include directory to
- # point to the installed directory, not the build directory.
- # Don't need to use LN_S here since we really do need ln -s and no substitutes.
-- -files=`cd $(libsubdir)/include; find . -type l -print 2>/dev/null`; \
-+ -files=`cd $(DESTDIR)$(libsubdir)/include; find . -type l -print 2>/dev/null`; \
- if [ $$? -eq 0 ]; then \
- dir=`cd include; pwd`; \
- for i in $$files; do \
-- dest=`ls -ld $(libsubdir)/include/$$i | sed -n 's/.*-> //p'`; \
-+ dest=`ls -ld $(DESTDIR)$(libsubdir)/include/$$i | sed -n 's/.*-> //p'`; \
- if expr "$$dest" : "$$dir.*" > /dev/null; then \
-- rm -f $(libsubdir)/include/$$i; \
-- ln -s `echo $$i | sed "s|/[^/]*|/..|g" | sed 's|/..$$||'``echo "$$dest" | sed "s|$$dir||"` $(libsubdir)/include/$$i; \
-+ rm -f $(DESTDIR)$(libsubdir)/include/$$i; \
-+ ln -s `echo $$i | sed "s|/[^/]*|/..|g" | sed 's|/..$$||'``echo "$$dest" | sed "s|$$dir||"` $(DESTDIR)$(libsubdir)/include/$$i; \
- fi; \
- done; \
- fi
-
- # Create or recreate the gcc private include file directory.
- install-include-dir: installdirs
-- -rm -rf $(libsubdir)/include
-- mkdir $(libsubdir)/include
-- -chmod a+rx $(libsubdir)/include
-+ -rm -rf $(DESTDIR)$(libsubdir)/include
-+ mkdir $(DESTDIR)$(libsubdir)/include
-+ -chmod a+rx $(DESTDIR)$(libsubdir)/include
-
- # Install the include directory using tar.
- install-headers-tar: stmp-int-hdrs $(STMP_FIXPROTO) install-include-dir
-@@ -2788,7 +2788,7 @@ install-headers-tar: stmp-int-hdrs $(STM
- # found in CDPATH, corrupting the output. We could just redirect the
- # output of `cd', but some shells lose on redirection within `()'s
- (cd `pwd`/include ; \
-- tar -cf - .; exit 0) | (cd $(libsubdir)/include; tar xpf - )
-+ tar -cf - .; exit 0) | (cd $(DESTDIR)$(libsubdir)/include; tar xpf - )
- # /bin/sh on some systems returns the status of the first tar,
- # and that can lose with GNU tar which always writes a full block.
- # So use `exit 0' to ignore its exit status.
-@@ -2797,35 +2797,35 @@ install-headers-tar: stmp-int-hdrs $(STM
- install-headers-cpio: stmp-int-hdrs $(STMP_FIXPROTO) install-include-dir
- # See discussion about the use of `pwd` above
- cd `pwd`/include ; \
-- find . -print | cpio -pdum $(libsubdir)/include
-+ find . -print | cpio -pdum $(DESTDIR)$(libsubdir)/include
-
- # Install the include directory using cp.
- install-headers-cp: stmp-int-hdrs $(STMP_FIXPROTO) install-include-dir
-- cp -p -r include $(libsubdir)
-+ cp -p -r include $(DESTDIR)$(libsubdir)
-
- # Use this target to install the program `collect2' under the name `collect2'.
- install-collect2: collect2 installdirs
-- $(INSTALL_PROGRAM) collect2$(exeext) $(libsubdir)/collect2$(exeext)
-+ $(INSTALL_PROGRAM) collect2$(exeext) $(DESTDIR)$(libsubdir)/collect2$(exeext)
- # Install the driver program as $(libsubdir)/gcc for collect2.
-- $(INSTALL_PROGRAM) xgcc$(exeext) $(libsubdir)/gcc$(exeext)
-+ $(INSTALL_PROGRAM) xgcc$(exeext) $(DESTDIR)$(libsubdir)/gcc$(exeext)
-
- # Cancel installation by deleting the installed files.
- uninstall: intl.uninstall lang.uninstall $(UNINSTALL_CPP)
-- -rm -rf $(libsubdir)
-- -rm -rf $(bindir)/$(GCC_INSTALL_NAME)$(exeext)
-- -rm -rf $(bindir)/$(GCC_CROSS_NAME)$(exeext)
-- -rm -rf $(bindir)/$(PROTOIZE_INSTALL_NAME)$(exeext)
-- -rm -rf $(bindir)/$(PROTOIZE_CROSS_NAME)$(exeext)
-- -rm -rf $(bindir)/$(UNPROTOIZE_INSTALL_NAME)$(exeext)
-- -rm -rf $(bindir)/$(UNPROTOIZE_CROSS_NAME)$(exeext)
-- -rm -rf $(bindir)/$(GCOV_INSTALL_NAME)$(exeext)
-- -rm -rf $(man1dir)/$(GCC_INSTALL_NAME)$(man1ext)
-- -rm -rf $(man1dir)/$(GCC_CROSS_NAME)$(man1ext)
-- -rm -rf $(man1dir)/cpp$(man1ext)
-- -rm -rf $(man1dir)/protoize$(man1ext)
-- -rm -rf $(man1dir)/unprotoize$(man1ext)
-- -rm -f $(infodir)/cpp.info* $(infodir)/gcc.info*
-- -rm -f $(infodir)/cppinternals.info* $(infodir)/gccint.info*
-+ -rm -rf $(DESTDIR)$(libsubdir)
-+ -rm -rf $(DESTDIR)$(bindir)/$(GCC_INSTALL_NAME)$(exeext)
-+ -rm -rf $(DESTDIR)$(bindir)/$(GCC_CROSS_NAME)$(exeext)
-+ -rm -rf $(DESTDIR)$(bindir)/$(PROTOIZE_INSTALL_NAME)$(exeext)
-+ -rm -rf $(DESTDIR)$(bindir)/$(PROTOIZE_CROSS_NAME)$(exeext)
-+ -rm -rf $(DESTDIR)$(bindir)/$(UNPROTOIZE_INSTALL_NAME)$(exeext)
-+ -rm -rf $(DESTDIR)$(bindir)/$(UNPROTOIZE_CROSS_NAME)$(exeext)
-+ -rm -rf $(DESTDIR)$(bindir)/$(GCOV_INSTALL_NAME)$(exeext)
-+ -rm -rf $(DESTDIR)$(man1dir)/$(GCC_INSTALL_NAME)$(man1ext)
-+ -rm -rf $(DESTDIR)$(man1dir)/$(GCC_CROSS_NAME)$(man1ext)
-+ -rm -rf $(DESTDIR)$(man1dir)/cpp$(man1ext)
-+ -rm -rf $(DESTDIR)$(man1dir)/protoize$(man1ext)
-+ -rm -rf $(DESTDIR)$(man1dir)/unprotoize$(man1ext)
-+ -rm -f $(DESTDIR)$(infodir)/cpp.info* $(DESTDIR)$(infodir)/gcc.info*
-+ -rm -f $(DESTDIR)$(infodir)/cppinternals.info* $(DESTDIR)$(infodir)/gccint.info*
- #
- # These targets are for the dejagnu testsuites. The file site.exp
- # contains global variables that all the testsuites will use.
diff --git a/cross/h8300-hms-gcc/patches/patch-ae b/cross/h8300-hms-gcc/patches/patch-ae
deleted file mode 100644
index 64068eed75f..00000000000
--- a/cross/h8300-hms-gcc/patches/patch-ae
+++ /dev/null
@@ -1,45 +0,0 @@
-$NetBSD: patch-ae,v 1.1 2010/02/14 21:30:00 dholland Exp $
-
-DESTDIR support.
-
---- ../gcc-3.1/gcc/mklibgcc.in.orig 2002-05-09 17:35:21.000000000 +0000
-+++ ../gcc-3.1/gcc/mklibgcc.in
-@@ -404,7 +404,7 @@ done
-
- echo 'stmp-dirs: force'
- echo ' for d in '"$dirs"'; do \'
--echo ' if [ -d $$d ]; then true; else '$mkinstalldirs' $$d; fi; \'
-+echo ' if [ -d $$d ]; then true; else '$mkinstalldirs' $(DESTDIR)$$d; fi; \'
- echo ' done'
- echo ' if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi'
-
-@@ -440,16 +440,16 @@ for ml in $MULTILIBS; do
- dir=`echo ${ml} | sed -e 's/;.*$//' -e 's/=/$(EQ)/g'`
- if [ $dir != . ]; then
- ldir='$(libsubdir)'/$dir
-- echo " if [ -d $ldir ]; then true; else mkdir $ldir; chmod a+rx $ldir; fi;"
-+ echo " if [ -d "'$(DESTDIR)'"$ldir ]; then true; else mkdir "'$(DESTDIR)'"$ldir; chmod a+rx "'$(DESTDIR)'"$ldir; fi;"
- else
- ldir='$(libsubdir)'
- fi
-- echo ' $(INSTALL_DATA)' ${dir}/libgcc.a ${ldir}/
-- echo ' $(RANLIB_FOR_TARGET)' ${ldir}/libgcc.a
-+ echo ' $(INSTALL_DATA)' ${dir}/libgcc.a '$(DESTDIR)'${ldir}/
-+ echo ' $(RANLIB_FOR_TARGET)' '$(DESTDIR)'${ldir}/libgcc.a
-
- if [ "$SHLIB_LINK" ]; then
-- echo ' $(INSTALL_DATA)' ${dir}/libgcc_eh.a ${ldir}/
-- echo ' $(RANLIB_FOR_TARGET)' ${ldir}/libgcc_eh.a
-+ echo ' $(INSTALL_DATA)' ${dir}/libgcc_eh.a '$(DESTDIR)'${ldir}/
-+ echo ' $(RANLIB_FOR_TARGET)' '$(DESTDIR)'${ldir}/libgcc_eh.a
-
- if [ -z "$SHLIB_MULTILIB" ]; then
- if [ "$dir" = . ]; then
-@@ -520,6 +520,6 @@ for f in $EXTRA_MULTILIB_PARTS; do
- out=$f
- ldir='$(libsubdir)'
- fi
-- echo ' $(INSTALL_DATA)' $out $ldir/
-+ echo ' $(INSTALL_DATA)' $out '$(DESTDIR)'$ldir/
- done
- done
diff --git a/cross/h8300-hms-gcc/patches/patch-af b/cross/h8300-hms-gcc/patches/patch-af
deleted file mode 100644
index 0bb7e1ecaa0..00000000000
--- a/cross/h8300-hms-gcc/patches/patch-af
+++ /dev/null
@@ -1,90 +0,0 @@
-$NetBSD: patch-af,v 1.2 2012/01/02 01:25:25 dholland Exp $
-
-DESTDIR support.
-
---- ../gcc-3.1/gcc/cp/Make-lang.in~ 2002-03-16 00:59:04.000000000 +0000
-+++ ../gcc-3.1/gcc/cp/Make-lang.in
-@@ -155,37 +155,37 @@ c++.install-normal:
- c++.install-common: installdirs
- -if [ -f cc1plus$(exeext) ] ; then \
- if [ -f g++-cross$(exeext) ] ; then \
-- rm -f $(bindir)/$(GXX_CROSS_NAME)$(exeext); \
-- $(INSTALL_PROGRAM) g++-cross$(exeext) $(bindir)/$(GXX_CROSS_NAME)$(exeext); \
-- chmod a+x $(bindir)/$(GXX_CROSS_NAME)$(exeext); \
-- rm -f $(bindir)/$(CXX_CROSS_NAME)$(exeext); \
-- $(LN) $(bindir)/$(GXX_CROSS_NAME)$(exeext) $(bindir)/$(CXX_CROSS_NAME)$(exeext); \
-- if [ -d $(gcc_tooldir)/bin/. ] ; then \
-- rm -f $(gcc_tooldir)/bin/g++$(exeext); \
-- $(INSTALL_PROGRAM) g++-cross$(exeext) $(gcc_tooldir)/bin/g++$(exeext); \
-- rm -f $(gcc_tooldir)/bin/c++$(exeext); \
-- $(LN) $(gcc_tooldir)/bin/g++$(exeext) $(gcc_tooldir)/bin/c++$(exeext); \
-+ rm -f $(DESTDIR)$(bindir)/$(GXX_CROSS_NAME)$(exeext); \
-+ $(INSTALL_PROGRAM) g++-cross$(exeext) $(DESTDIR)$(bindir)/$(GXX_CROSS_NAME)$(exeext); \
-+ chmod a+x $(DESTDIR)$(bindir)/$(GXX_CROSS_NAME)$(exeext); \
-+ rm -f $(DESTDIR)$(bindir)/$(CXX_CROSS_NAME)$(exeext); \
-+ $(LN) $(DESTDIR)$(bindir)/$(GXX_CROSS_NAME)$(exeext) $(DESTDIR)$(bindir)/$(CXX_CROSS_NAME)$(exeext); \
-+ if [ -d $(DESTDIR)$(gcc_tooldir)/bin/. ] ; then \
-+ rm -f $(DESTDIR)$(gcc_tooldir)/bin/g++$(exeext); \
-+ $(INSTALL_PROGRAM) g++-cross$(exeext) $(DESTDIR)$(gcc_tooldir)/bin/g++$(exeext); \
-+ rm -f $(DESTDIR)$(gcc_tooldir)/bin/c++$(exeext); \
-+ $(LN) $(DESTDIR)$(gcc_tooldir)/bin/g++$(exeext) $(DESTDIR)$(gcc_tooldir)/bin/c++$(exeext); \
- else true; fi; \
- else \
-- rm -f $(bindir)/$(GXX_INSTALL_NAME)$(exeext); \
-- $(INSTALL_PROGRAM) g++$(exeext) $(bindir)/$(GXX_INSTALL_NAME)$(exeext); \
-- chmod a+x $(bindir)/$(GXX_INSTALL_NAME)$(exeext); \
-- rm -f $(bindir)/$(CXX_INSTALL_NAME)$(exeext); \
-- $(LN) $(bindir)/$(GXX_INSTALL_NAME)$(exeext) $(bindir)/$(CXX_INSTALL_NAME)$(exeext); \
-- rm -f $(bindir)/$(GXX_TARGET_INSTALL_NAME)$(exeext); \
-- $(LN) $(bindir)/$(GXX_INSTALL_NAME)$(exeext) $(bindir)/$(GXX_TARGET_INSTALL_NAME)$(exeext); \
-- rm -f $(bindir)/$(CXX_TARGET_INSTALL_NAME)$(exeext); \
-- $(LN) $(bindir)/$(CXX_INSTALL_NAME)$(exeext) $(bindir)/$(CXX_TARGET_INSTALL_NAME)$(exeext); \
-+ rm -f $(DESTDIR)$(bindir)/$(GXX_INSTALL_NAME)$(exeext); \
-+ $(INSTALL_PROGRAM) g++$(exeext) $(DESTDIR)$(bindir)/$(GXX_INSTALL_NAME)$(exeext); \
-+ chmod a+x $(DESTDIR)$(bindir)/$(GXX_INSTALL_NAME)$(exeext); \
-+ rm -f $(DESTDIR)$(bindir)/$(CXX_INSTALL_NAME)$(exeext); \
-+ $(LN) $(DESTDIR)$(bindir)/$(GXX_INSTALL_NAME)$(exeext) $(DESTDIR)$(bindir)/$(CXX_INSTALL_NAME)$(exeext); \
-+ rm -f $(DESTDIR)$(bindir)/$(GXX_TARGET_INSTALL_NAME)$(exeext); \
-+ $(LN) $(DESTDIR)$(bindir)/$(GXX_INSTALL_NAME)$(exeext) $(DESTDIR)$(bindir)/$(GXX_TARGET_INSTALL_NAME)$(exeext); \
-+ rm -f $(DESTDIR)$(bindir)/$(CXX_TARGET_INSTALL_NAME)$(exeext); \
-+ $(LN) $(DESTDIR)$(bindir)/$(CXX_INSTALL_NAME)$(exeext) $(DESTDIR)$(bindir)/$(CXX_TARGET_INSTALL_NAME)$(exeext); \
- fi ; \
-- if [ x$(DEMANGLER_PROG) != x ] && [ -x "$(DEMANGLER_PROG)" ]; then \
-+ if false; then \
- if [ -f g++-cross$(exeext) ] ; then \
-- rm -f $(bindir)/$(DEMANGLER_CROSS_NAME)$(exeext); \
-- $(INSTALL_PROGRAM) $(DEMANGLER_PROG) $(bindir)/$(DEMANGLER_CROSS_NAME)$(exeext); \
-- chmod a+x $(bindir)/$(DEMANGLER_CROSS_NAME)$(exeext); \
-+ rm -f $(DESTDIR)$(bindir)/$(DEMANGLER_CROSS_NAME)$(exeext); \
-+ $(INSTALL_PROGRAM) $(DEMANGLER_PROG) $(DESTDIR)$(bindir)/$(DEMANGLER_CROSS_NAME)$(exeext); \
-+ chmod a+x $(DESTDIR)$(bindir)/$(DEMANGLER_CROSS_NAME)$(exeext); \
- else \
-- rm -f $(bindir)/$(DEMANGLER_INSTALL_NAME)$(exeext); \
-- $(INSTALL_PROGRAM) $(DEMANGLER_PROG) $(bindir)/$(DEMANGLER_INSTALL_NAME)$(exeext); \
-- chmod a+x $(bindir)/$(DEMANGLER_INSTALL_NAME)$(exeext); \
-+ rm -f $(DESTDIR)$(bindir)/$(DEMANGLER_INSTALL_NAME)$(exeext); \
-+ $(INSTALL_PROGRAM) $(DEMANGLER_PROG) $(DESTDIR)$(bindir)/$(DEMANGLER_INSTALL_NAME)$(exeext); \
-+ chmod a+x $(DESTDIR)$(bindir)/$(DEMANGLER_INSTALL_NAME)$(exeext); \
- fi ; \
- fi ; \
- fi
-@@ -195,13 +195,13 @@ c++.install-info:
- c++.install-man: installdirs $(srcdir)/cp/g++.1
- -if [ -f cc1plus$(exeext) ] ; then \
- if [ -f g++-cross$(exeext) ] ; then \
-- rm -f $(man1dir)/$(GXX_CROSS_NAME)$(man1ext); \
-- $(INSTALL_DATA) $(srcdir)/cp/g++.1 $(man1dir)/$(GXX_CROSS_NAME)$(man1ext); \
-- chmod a-x $(man1dir)/$(GXX_CROSS_NAME)$(man1ext); \
-+ rm -f $(DESTDIR)$(man1dir)/$(GXX_CROSS_NAME)$(man1ext); \
-+ $(INSTALL_DATA) $(srcdir)/cp/g++.1 $(DESTDIR)$(man1dir)/$(GXX_CROSS_NAME)$(man1ext); \
-+ chmod a-x $(DESTDIR)$(man1dir)/$(GXX_CROSS_NAME)$(man1ext); \
- else \
-- rm -f $(man1dir)/$(GXX_INSTALL_NAME)$(man1ext); \
-- $(INSTALL_DATA) $(srcdir)/cp/g++.1 $(man1dir)/$(GXX_INSTALL_NAME)$(man1ext); \
-- chmod a-x $(man1dir)/$(GXX_INSTALL_NAME)$(man1ext); \
-+ rm -f $(DESTDIR)$(man1dir)/$(GXX_INSTALL_NAME)$(man1ext); \
-+ $(INSTALL_DATA) $(srcdir)/cp/g++.1 $(DESTDIR)$(man1dir)/$(GXX_INSTALL_NAME)$(man1ext); \
-+ chmod a-x $(DESTDIR)$(man1dir)/$(GXX_INSTALL_NAME)$(man1ext); \
- fi; \
- else true; fi
-
diff --git a/cross/h8300-hms-gcc/patches/patch-ag b/cross/h8300-hms-gcc/patches/patch-ag
deleted file mode 100644
index b9ddb7b405b..00000000000
--- a/cross/h8300-hms-gcc/patches/patch-ag
+++ /dev/null
@@ -1,28 +0,0 @@
-$NetBSD: patch-ag,v 1.1 2010/02/14 21:30:00 dholland Exp $
-
-DESTDIR support.
-
---- ../gcc-3.1/libiberty/Makefile.in~ 2002-01-22 20:03:29.000000000 +0000
-+++ ../gcc-3.1/libiberty/Makefile.in
-@@ -237,15 +237,15 @@ INSTALL_DEST = @INSTALL_DEST@
- install: install_to_$(INSTALL_DEST) install-subdir
-
- install_to_libdir: all
-- $(INSTALL_DATA) $(TARGETLIB) $(libdir)$(MULTISUBDIR)/$(TARGETLIB)n
-- ( cd $(libdir)$(MULTISUBDIR) ; $(RANLIB) $(TARGETLIB)n )
-- mv -f $(libdir)$(MULTISUBDIR)/$(TARGETLIB)n $(libdir)$(MULTISUBDIR)/$(TARGETLIB)
-+ $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB)n
-+ ( cd $(DESTDIR)$(libdir)$(MULTISUBDIR) ; $(RANLIB) $(TARGETLIB)n )
-+ mv -f $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB)n $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB)
- @$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
-
- install_to_tooldir: all
-- $(INSTALL_DATA) $(TARGETLIB) $(tooldir)/lib$(MULTISUBDIR)/$(TARGETLIB)n
-- ( cd $(tooldir)/lib$(MULTISUBDIR) ; $(RANLIB) $(TARGETLIB)n )
-- mv -f $(tooldir)/lib$(MULTISUBDIR)/$(TARGETLIB)n $(tooldir)/lib$(MULTISUBDIR)/$(TARGETLIB)
-+ $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(tooldir)/lib$(MULTISUBDIR)/$(TARGETLIB)n
-+ ( cd $(DESTDIR)$(tooldir)/lib$(MULTISUBDIR) ; $(RANLIB) $(TARGETLIB)n )
-+ mv -f $(DESTDIR)$(tooldir)/lib$(MULTISUBDIR)/$(TARGETLIB)n $(DESTDIR)$(tooldir)/lib$(MULTISUBDIR)/$(TARGETLIB)
- @$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
-
- # needed-list is used by libstdc++. NEEDED is the list of functions