History log of /netbsd-current/tools/gdb/Makefile
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.49 20-Aug-2023 rin

gdb/mknative: Preset yes to rename(2) checks

It must be better to have this workaround here, rather than in external.
(Thanks uwe@ for suggestion!)

Confirmed that the same files generated as before.


# 1.48 17-Aug-2023 rin

tools/gdb: Drop working dir for mknative from generated files

Migrate -I${.OBJDIR}/.native/include from CPPFLAGS to CCADDFLAGS for
this purpose.

No binary changes for native binaries as far as I can see.


# 1.47 17-Aug-2023 rin

tools/gdb: Sprinkle --enable-obsolete for ia64 :(


# 1.46 15-Aug-2023 christos

override the override


# 1.45 14-Aug-2023 christos

backout previous; cross build needs native gmp


# 1.44 14-Aug-2023 christos

fix cross-gdb


# 1.43 09-Aug-2023 christos

jump through hoops to make the native build find gmp for gdb.


# 1.42 31-Jul-2023 christos

mknative support for gdb-13.2


# 1.41 08-May-2023 skrll

Set ac_cv_func_sigprocmask=yes as the symbol renaming confuses the
configure script on architectures that don't provide a compatibilty
symbol, e.g. RISC-V


Revision tags: netbsd-10-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.40 24-Sep-2020 christos

grab the gdbserver version


# 1.39 23-Sep-2020 christos

Add gdbserver


Revision tags: netbsd-9-3-RELEASE netbsd-9-2-RELEASE netbsd-9-1-RELEASE phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609
# 1.38 02-Jun-2019 christos

force libexpat since the autoconfig test are not cross-compile friendly
(they try to link with /usr/lib/libexpat.so in the compiler invocation).


# 1.37 01-Jun-2019 christos

Disable mpfr to make MKCROSSGDB work again. The problem is that the default
(auto) finds the mpfr library in tools, but then when it tries to build using
the proper headers it does not find it anymore since we don't install it
(like the native build does not find it).


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502
# 1.36 01-May-2018 christos

branches: 1.36.2;
Create a new bsd.hostinit.mk file and put the build definitions for all host
programs there; make all Makefiles that use bsd.hostprog.mk include it.
Namely turn off MKREPRO and don't make lint, man pages, info files etc.
Remove the Makefile.inc files that contained these same settings, and
remove the settings from Makefile.host


# 1.35 01-May-2018 christos

PR/53238: Robert Elz: Disable MKREPRO in tools; the host compiler might
not support the necessary options. This is done thusly:

1. Set MKREPRO=no in Makefile.host. This handles all the Makefiles that
use it and don't include bsd.own.mk.
2. Create Makefile.inc and set MKREPRO=no in it. Change the Makefiles that
include bsd.own.mk, to include bsd.init.mk which includes Makefile.inc
first. This will also allow us to control other tools options from a
single location if we need to.

XXX: pullup-8


Revision tags: pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.34 29-Nov-2017 christos

branches: 1.34.2;
we want no-iconv for the tools build, but we want iconv for mknative.


# 1.33 29-Nov-2017 christos

Changes for gdb-8.0.1


# 1.32 28-Nov-2017 christos

Adjust to gdb-8.0.1 which uses c++
XXX: quoting of variables that contain paths and versions is broken.


Revision tags: perseant-stdc-iso10646-base
# 1.31 01-Jul-2017 jmcneill

--disable-nls does not work in gdb subdir, so add am_cv_func_iconv=no to
configure env. Fixes build on FreeBSD.


Revision tags: netbsd-8-0-RC1 matt-nb8-mediatek-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.30 16-Oct-2016 mrg

branches: 1.30.6;
pass GDB_MACHINE_ARCH to mknative-gdb and use that as the subdir.
obtain GDB_MACHINE_ARCH from the new gdb Makefile.gdb_arch.


# 1.29 14-Oct-2016 christos

Fix the host build of aarch64 with clang


# 1.28 12-Oct-2016 christos

Define __STDC_{LIMIT,CONSTANT,FORMAT}_MACROS in CXXFLAGS.
The problem is that the gnulib interception of <stdint.h> and <inttypes.h>
does not really work because we implement those internally with
<sys/inttypes.h> and <sys/stdint.h> and those internal headers are used
by other internal headers *before* they get a chance to be intercepted
(where the __STDC_ macros are defined).

Another way to fix this is to move the inclusion of the other headers
in <stdint.h> and <inttypes.h> outside multiple inclusion protection.


Revision tags: localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.27 26-Jan-2016 christos

branches: 1.27.2;
use EXTERNAL_GDB_SUBDIR


# 1.26 17-Sep-2015 skrll

gdb.old is no more.


# 1.25 16-Aug-2015 christos

add double quotes for consistency


# 1.24 16-Aug-2015 christos

handle gdb-7.9.1


# 1.23 15-Aug-2015 mrg

for now, use gdb.old.


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6 tls-maxphys-base
# 1.22 01-Oct-2012 bouyer

At last on some linux distros, gmake is needed to build the cross-gdb.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-0-5-RELEASE netbsd-6-0-4-RELEASE netbsd-6-0-3-RELEASE netbsd-6-0-2-RELEASE netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.21 09-Feb-2012 skrll

branches: 1.21.2; 1.21.4; 1.21.6;
Disable the sim on mips for next person running gdb7 mknative.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.20 26-Sep-2011 christos

branches: 1.20.2;
remove pre-gcc-4.5 mknative remnants that have long ceased to function.


# 1.19 26-Sep-2011 christos

mknative for gdb7


Revision tags: cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
# 1.18 24-Dec-2010 njoly

Adjust LDFLAGS handling to fix curses detection for mknative-gdb.


# 1.17 08-May-2010 hans

Fix tools build on Solaris with MKCROSSGDB=YES.


# 1.16 23-Dec-2009 mrg

revert the previous; not intended to be part of that commit, or any commit


# 1.15 23-Dec-2009 mrg

rework the main SUBDIR list here as suggested by enami. put .WAIT on
the same line as the target that needs to wait, but before the target,
rather than on the previous line, which led to confusion and an error
being introduced in the previous change.


# 1.14 15-Dec-2009 uebayasi

Fix parallel build. Analyzed & patch provided by enami@, thanks!


# 1.13 14-Dec-2009 christos

disable only parallel make.


# 1.12 14-Dec-2009 uebayasi

Disable parallel build, which always fails at compiling itable.c / interp.c.
Only affect MKCROSSGDB=yes.


Revision tags: matt-premerge-20091211 jym-xensuspend-nbase jym-xensuspend-base
# 1.11 05-Dec-2008 mrg

MACHINE_CPU is "mips" not "xxmips".


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 mjf-devfs2-base wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-baseX yamt-pf42-base2 wrstuden-revivesa-base yamt-pf42-base keiichi-mipv6-nbase keiichi-mipv6-base matt-armv6-nbase matt-armv6-prevmlocking cube-autoconf-base matt-armv6-base matt-mips64-base hpcarm-cleanup-base
# 1.10 19-Feb-2007 chs

disable sim for mips until someone adds the rest of the build framework for it.


Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 wrstuden-fixsa-base netbsd-4-base
# 1.9 25-Nov-2006 skrll

branches: 1.9.2; 1.9.4;
Fix the logic for --disable-sym. Hi uwe!

Use CPPFLAG_ISYSTEM.


# 1.8 24-Nov-2006 uwe

Disable sim for mknative unless it's known to work (configure's
default is to enable sim if there's support for the cpu).

The current list of "known to work" contains arches with G_SIM_OBS
already set: powerpc, powerpc64 and mips.

There's arm support in sim, but committed configs for arm do not have
G_SIM_OBS set, so I'm not enabling it here.

There's SH support in sim, but it fails to build out of the box, and
since we didn't build SH sim support for gdb 5.3, we keep it disabled.

Other arches shouldn't be affected, as there's no support for them in sim.


# 1.7 24-Nov-2006 uwe

Pass preset configure "cache" vars in the environment not only to the
top-level configure, but to ${MAKE} configure-host as well.

Add more vars (for readline mostly) so that there's no configure
warnings about tests skipped b/c of cross-compilation.


# 1.6 23-Nov-2006 uwe

Use -isystem to add ${DESTDIR}/usr/include to the search path.

gdb comes with its own copy of GNU readline 5.x, but
-I${DESTDIR}/usr/include stuffed at the beginning of the command line
makes it find our compat readline/readline.h (emulating readline 2.x)
that conflicts with the readline 5.x includes.

Makes README.mknative instructions actually work instead of failing
midway b/c of conflicting tilde_expand() prototypes.


Revision tags: abandoned-netbsd-4-base
# 1.5 21-Jul-2006 lukem

Configure using --with-separate-debug-dir=/usr/libdata/debug.
(The various MACHINE-specific configurations will need to be regenerated.)


# 1.4 02-Jul-2006 nathanw

Explicitly pass "--prefix=/usr" to configure so that DEBUGDIR and
LOCALEDIR point into /usr rather than /usr/local.


# 1.3 30-May-2006 nathanw

Support .native in an objdir, so I can keep more than one around at a
time.


# 1.2 29-May-2006 nathanw

Support for mknative machinery.


Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-3-base netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.1 26-Oct-2003 cl

add gdb53 as a host tool for use as a crossgdb
replaces gdb50 from toolchain on archs which use gcc3


# 1.48 17-Aug-2023 rin

tools/gdb: Drop working dir for mknative from generated files

Migrate -I${.OBJDIR}/.native/include from CPPFLAGS to CCADDFLAGS for
this purpose.

No binary changes for native binaries as far as I can see.


# 1.47 17-Aug-2023 rin

tools/gdb: Sprinkle --enable-obsolete for ia64 :(


# 1.46 15-Aug-2023 christos

override the override


# 1.45 14-Aug-2023 christos

backout previous; cross build needs native gmp


# 1.44 14-Aug-2023 christos

fix cross-gdb


# 1.43 09-Aug-2023 christos

jump through hoops to make the native build find gmp for gdb.


# 1.42 31-Jul-2023 christos

mknative support for gdb-13.2


# 1.41 08-May-2023 skrll

Set ac_cv_func_sigprocmask=yes as the symbol renaming confuses the
configure script on architectures that don't provide a compatibilty
symbol, e.g. RISC-V


Revision tags: netbsd-10-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.40 24-Sep-2020 christos

grab the gdbserver version


# 1.39 23-Sep-2020 christos

Add gdbserver


Revision tags: netbsd-9-3-RELEASE netbsd-9-2-RELEASE netbsd-9-1-RELEASE phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609
# 1.38 02-Jun-2019 christos

force libexpat since the autoconfig test are not cross-compile friendly
(they try to link with /usr/lib/libexpat.so in the compiler invocation).


# 1.37 01-Jun-2019 christos

Disable mpfr to make MKCROSSGDB work again. The problem is that the default
(auto) finds the mpfr library in tools, but then when it tries to build using
the proper headers it does not find it anymore since we don't install it
(like the native build does not find it).


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502
# 1.36 01-May-2018 christos

branches: 1.36.2;
Create a new bsd.hostinit.mk file and put the build definitions for all host
programs there; make all Makefiles that use bsd.hostprog.mk include it.
Namely turn off MKREPRO and don't make lint, man pages, info files etc.
Remove the Makefile.inc files that contained these same settings, and
remove the settings from Makefile.host


# 1.35 01-May-2018 christos

PR/53238: Robert Elz: Disable MKREPRO in tools; the host compiler might
not support the necessary options. This is done thusly:

1. Set MKREPRO=no in Makefile.host. This handles all the Makefiles that
use it and don't include bsd.own.mk.
2. Create Makefile.inc and set MKREPRO=no in it. Change the Makefiles that
include bsd.own.mk, to include bsd.init.mk which includes Makefile.inc
first. This will also allow us to control other tools options from a
single location if we need to.

XXX: pullup-8


Revision tags: pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.34 29-Nov-2017 christos

branches: 1.34.2;
we want no-iconv for the tools build, but we want iconv for mknative.


# 1.33 29-Nov-2017 christos

Changes for gdb-8.0.1


# 1.32 28-Nov-2017 christos

Adjust to gdb-8.0.1 which uses c++
XXX: quoting of variables that contain paths and versions is broken.


Revision tags: perseant-stdc-iso10646-base
# 1.31 01-Jul-2017 jmcneill

--disable-nls does not work in gdb subdir, so add am_cv_func_iconv=no to
configure env. Fixes build on FreeBSD.


Revision tags: netbsd-8-0-RC1 matt-nb8-mediatek-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.30 16-Oct-2016 mrg

branches: 1.30.6;
pass GDB_MACHINE_ARCH to mknative-gdb and use that as the subdir.
obtain GDB_MACHINE_ARCH from the new gdb Makefile.gdb_arch.


# 1.29 14-Oct-2016 christos

Fix the host build of aarch64 with clang


# 1.28 12-Oct-2016 christos

Define __STDC_{LIMIT,CONSTANT,FORMAT}_MACROS in CXXFLAGS.
The problem is that the gnulib interception of <stdint.h> and <inttypes.h>
does not really work because we implement those internally with
<sys/inttypes.h> and <sys/stdint.h> and those internal headers are used
by other internal headers *before* they get a chance to be intercepted
(where the __STDC_ macros are defined).

Another way to fix this is to move the inclusion of the other headers
in <stdint.h> and <inttypes.h> outside multiple inclusion protection.


Revision tags: localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.27 26-Jan-2016 christos

branches: 1.27.2;
use EXTERNAL_GDB_SUBDIR


# 1.26 17-Sep-2015 skrll

gdb.old is no more.


# 1.25 16-Aug-2015 christos

add double quotes for consistency


# 1.24 16-Aug-2015 christos

handle gdb-7.9.1


# 1.23 15-Aug-2015 mrg

for now, use gdb.old.


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6 tls-maxphys-base
# 1.22 01-Oct-2012 bouyer

At last on some linux distros, gmake is needed to build the cross-gdb.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-0-5-RELEASE netbsd-6-0-4-RELEASE netbsd-6-0-3-RELEASE netbsd-6-0-2-RELEASE netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.21 09-Feb-2012 skrll

branches: 1.21.2; 1.21.4; 1.21.6;
Disable the sim on mips for next person running gdb7 mknative.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.20 26-Sep-2011 christos

branches: 1.20.2;
remove pre-gcc-4.5 mknative remnants that have long ceased to function.


# 1.19 26-Sep-2011 christos

mknative for gdb7


Revision tags: cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
# 1.18 24-Dec-2010 njoly

Adjust LDFLAGS handling to fix curses detection for mknative-gdb.


# 1.17 08-May-2010 hans

Fix tools build on Solaris with MKCROSSGDB=YES.


# 1.16 23-Dec-2009 mrg

revert the previous; not intended to be part of that commit, or any commit


# 1.15 23-Dec-2009 mrg

rework the main SUBDIR list here as suggested by enami. put .WAIT on
the same line as the target that needs to wait, but before the target,
rather than on the previous line, which led to confusion and an error
being introduced in the previous change.


# 1.14 15-Dec-2009 uebayasi

Fix parallel build. Analyzed & patch provided by enami@, thanks!


# 1.13 14-Dec-2009 christos

disable only parallel make.


# 1.12 14-Dec-2009 uebayasi

Disable parallel build, which always fails at compiling itable.c / interp.c.
Only affect MKCROSSGDB=yes.


Revision tags: matt-premerge-20091211 jym-xensuspend-nbase jym-xensuspend-base
# 1.11 05-Dec-2008 mrg

MACHINE_CPU is "mips" not "xxmips".


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 mjf-devfs2-base wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-baseX yamt-pf42-base2 wrstuden-revivesa-base yamt-pf42-base keiichi-mipv6-nbase keiichi-mipv6-base matt-armv6-nbase matt-armv6-prevmlocking cube-autoconf-base matt-armv6-base matt-mips64-base hpcarm-cleanup-base
# 1.10 19-Feb-2007 chs

disable sim for mips until someone adds the rest of the build framework for it.


Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 wrstuden-fixsa-base netbsd-4-base
# 1.9 25-Nov-2006 skrll

branches: 1.9.2; 1.9.4;
Fix the logic for --disable-sym. Hi uwe!

Use CPPFLAG_ISYSTEM.


# 1.8 24-Nov-2006 uwe

Disable sim for mknative unless it's known to work (configure's
default is to enable sim if there's support for the cpu).

The current list of "known to work" contains arches with G_SIM_OBS
already set: powerpc, powerpc64 and mips.

There's arm support in sim, but committed configs for arm do not have
G_SIM_OBS set, so I'm not enabling it here.

There's SH support in sim, but it fails to build out of the box, and
since we didn't build SH sim support for gdb 5.3, we keep it disabled.

Other arches shouldn't be affected, as there's no support for them in sim.


# 1.7 24-Nov-2006 uwe

Pass preset configure "cache" vars in the environment not only to the
top-level configure, but to ${MAKE} configure-host as well.

Add more vars (for readline mostly) so that there's no configure
warnings about tests skipped b/c of cross-compilation.


# 1.6 23-Nov-2006 uwe

Use -isystem to add ${DESTDIR}/usr/include to the search path.

gdb comes with its own copy of GNU readline 5.x, but
-I${DESTDIR}/usr/include stuffed at the beginning of the command line
makes it find our compat readline/readline.h (emulating readline 2.x)
that conflicts with the readline 5.x includes.

Makes README.mknative instructions actually work instead of failing
midway b/c of conflicting tilde_expand() prototypes.


Revision tags: abandoned-netbsd-4-base
# 1.5 21-Jul-2006 lukem

Configure using --with-separate-debug-dir=/usr/libdata/debug.
(The various MACHINE-specific configurations will need to be regenerated.)


# 1.4 02-Jul-2006 nathanw

Explicitly pass "--prefix=/usr" to configure so that DEBUGDIR and
LOCALEDIR point into /usr rather than /usr/local.


# 1.3 30-May-2006 nathanw

Support .native in an objdir, so I can keep more than one around at a
time.


# 1.2 29-May-2006 nathanw

Support for mknative machinery.


Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-3-base netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.1 26-Oct-2003 cl

add gdb53 as a host tool for use as a crossgdb
replaces gdb50 from toolchain on archs which use gcc3


# 1.46 15-Aug-2023 christos

override the override


# 1.45 14-Aug-2023 christos

backout previous; cross build needs native gmp


# 1.44 14-Aug-2023 christos

fix cross-gdb


# 1.43 09-Aug-2023 christos

jump through hoops to make the native build find gmp for gdb.


# 1.42 31-Jul-2023 christos

mknative support for gdb-13.2


# 1.41 08-May-2023 skrll

Set ac_cv_func_sigprocmask=yes as the symbol renaming confuses the
configure script on architectures that don't provide a compatibilty
symbol, e.g. RISC-V


Revision tags: netbsd-10-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.40 24-Sep-2020 christos

grab the gdbserver version


# 1.39 23-Sep-2020 christos

Add gdbserver


Revision tags: netbsd-9-3-RELEASE netbsd-9-2-RELEASE netbsd-9-1-RELEASE phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609
# 1.38 02-Jun-2019 christos

force libexpat since the autoconfig test are not cross-compile friendly
(they try to link with /usr/lib/libexpat.so in the compiler invocation).


# 1.37 01-Jun-2019 christos

Disable mpfr to make MKCROSSGDB work again. The problem is that the default
(auto) finds the mpfr library in tools, but then when it tries to build using
the proper headers it does not find it anymore since we don't install it
(like the native build does not find it).


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502
# 1.36 01-May-2018 christos

branches: 1.36.2;
Create a new bsd.hostinit.mk file and put the build definitions for all host
programs there; make all Makefiles that use bsd.hostprog.mk include it.
Namely turn off MKREPRO and don't make lint, man pages, info files etc.
Remove the Makefile.inc files that contained these same settings, and
remove the settings from Makefile.host


# 1.35 01-May-2018 christos

PR/53238: Robert Elz: Disable MKREPRO in tools; the host compiler might
not support the necessary options. This is done thusly:

1. Set MKREPRO=no in Makefile.host. This handles all the Makefiles that
use it and don't include bsd.own.mk.
2. Create Makefile.inc and set MKREPRO=no in it. Change the Makefiles that
include bsd.own.mk, to include bsd.init.mk which includes Makefile.inc
first. This will also allow us to control other tools options from a
single location if we need to.

XXX: pullup-8


Revision tags: pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.34 29-Nov-2017 christos

branches: 1.34.2;
we want no-iconv for the tools build, but we want iconv for mknative.


# 1.33 29-Nov-2017 christos

Changes for gdb-8.0.1


# 1.32 28-Nov-2017 christos

Adjust to gdb-8.0.1 which uses c++
XXX: quoting of variables that contain paths and versions is broken.


Revision tags: perseant-stdc-iso10646-base
# 1.31 01-Jul-2017 jmcneill

--disable-nls does not work in gdb subdir, so add am_cv_func_iconv=no to
configure env. Fixes build on FreeBSD.


Revision tags: netbsd-8-0-RC1 matt-nb8-mediatek-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.30 16-Oct-2016 mrg

branches: 1.30.6;
pass GDB_MACHINE_ARCH to mknative-gdb and use that as the subdir.
obtain GDB_MACHINE_ARCH from the new gdb Makefile.gdb_arch.


# 1.29 14-Oct-2016 christos

Fix the host build of aarch64 with clang


# 1.28 12-Oct-2016 christos

Define __STDC_{LIMIT,CONSTANT,FORMAT}_MACROS in CXXFLAGS.
The problem is that the gnulib interception of <stdint.h> and <inttypes.h>
does not really work because we implement those internally with
<sys/inttypes.h> and <sys/stdint.h> and those internal headers are used
by other internal headers *before* they get a chance to be intercepted
(where the __STDC_ macros are defined).

Another way to fix this is to move the inclusion of the other headers
in <stdint.h> and <inttypes.h> outside multiple inclusion protection.


Revision tags: localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.27 26-Jan-2016 christos

branches: 1.27.2;
use EXTERNAL_GDB_SUBDIR


# 1.26 17-Sep-2015 skrll

gdb.old is no more.


# 1.25 16-Aug-2015 christos

add double quotes for consistency


# 1.24 16-Aug-2015 christos

handle gdb-7.9.1


# 1.23 15-Aug-2015 mrg

for now, use gdb.old.


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6 tls-maxphys-base
# 1.22 01-Oct-2012 bouyer

At last on some linux distros, gmake is needed to build the cross-gdb.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-0-5-RELEASE netbsd-6-0-4-RELEASE netbsd-6-0-3-RELEASE netbsd-6-0-2-RELEASE netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.21 09-Feb-2012 skrll

branches: 1.21.2; 1.21.4; 1.21.6;
Disable the sim on mips for next person running gdb7 mknative.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.20 26-Sep-2011 christos

branches: 1.20.2;
remove pre-gcc-4.5 mknative remnants that have long ceased to function.


# 1.19 26-Sep-2011 christos

mknative for gdb7


Revision tags: cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
# 1.18 24-Dec-2010 njoly

Adjust LDFLAGS handling to fix curses detection for mknative-gdb.


# 1.17 08-May-2010 hans

Fix tools build on Solaris with MKCROSSGDB=YES.


# 1.16 23-Dec-2009 mrg

revert the previous; not intended to be part of that commit, or any commit


# 1.15 23-Dec-2009 mrg

rework the main SUBDIR list here as suggested by enami. put .WAIT on
the same line as the target that needs to wait, but before the target,
rather than on the previous line, which led to confusion and an error
being introduced in the previous change.


# 1.14 15-Dec-2009 uebayasi

Fix parallel build. Analyzed & patch provided by enami@, thanks!


# 1.13 14-Dec-2009 christos

disable only parallel make.


# 1.12 14-Dec-2009 uebayasi

Disable parallel build, which always fails at compiling itable.c / interp.c.
Only affect MKCROSSGDB=yes.


Revision tags: matt-premerge-20091211 jym-xensuspend-nbase jym-xensuspend-base
# 1.11 05-Dec-2008 mrg

MACHINE_CPU is "mips" not "xxmips".


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 mjf-devfs2-base wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-baseX yamt-pf42-base2 wrstuden-revivesa-base yamt-pf42-base keiichi-mipv6-nbase keiichi-mipv6-base matt-armv6-nbase matt-armv6-prevmlocking cube-autoconf-base matt-armv6-base matt-mips64-base hpcarm-cleanup-base
# 1.10 19-Feb-2007 chs

disable sim for mips until someone adds the rest of the build framework for it.


Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 wrstuden-fixsa-base netbsd-4-base
# 1.9 25-Nov-2006 skrll

branches: 1.9.2; 1.9.4;
Fix the logic for --disable-sym. Hi uwe!

Use CPPFLAG_ISYSTEM.


# 1.8 24-Nov-2006 uwe

Disable sim for mknative unless it's known to work (configure's
default is to enable sim if there's support for the cpu).

The current list of "known to work" contains arches with G_SIM_OBS
already set: powerpc, powerpc64 and mips.

There's arm support in sim, but committed configs for arm do not have
G_SIM_OBS set, so I'm not enabling it here.

There's SH support in sim, but it fails to build out of the box, and
since we didn't build SH sim support for gdb 5.3, we keep it disabled.

Other arches shouldn't be affected, as there's no support for them in sim.


# 1.7 24-Nov-2006 uwe

Pass preset configure "cache" vars in the environment not only to the
top-level configure, but to ${MAKE} configure-host as well.

Add more vars (for readline mostly) so that there's no configure
warnings about tests skipped b/c of cross-compilation.


# 1.6 23-Nov-2006 uwe

Use -isystem to add ${DESTDIR}/usr/include to the search path.

gdb comes with its own copy of GNU readline 5.x, but
-I${DESTDIR}/usr/include stuffed at the beginning of the command line
makes it find our compat readline/readline.h (emulating readline 2.x)
that conflicts with the readline 5.x includes.

Makes README.mknative instructions actually work instead of failing
midway b/c of conflicting tilde_expand() prototypes.


Revision tags: abandoned-netbsd-4-base
# 1.5 21-Jul-2006 lukem

Configure using --with-separate-debug-dir=/usr/libdata/debug.
(The various MACHINE-specific configurations will need to be regenerated.)


# 1.4 02-Jul-2006 nathanw

Explicitly pass "--prefix=/usr" to configure so that DEBUGDIR and
LOCALEDIR point into /usr rather than /usr/local.


# 1.3 30-May-2006 nathanw

Support .native in an objdir, so I can keep more than one around at a
time.


# 1.2 29-May-2006 nathanw

Support for mknative machinery.


Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-3-base netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.1 26-Oct-2003 cl

add gdb53 as a host tool for use as a crossgdb
replaces gdb50 from toolchain on archs which use gcc3


# 1.43 09-Aug-2023 christos

jump through hoops to make the native build find gmp for gdb.


# 1.42 31-Jul-2023 christos

mknative support for gdb-13.2


# 1.41 08-May-2023 skrll

Set ac_cv_func_sigprocmask=yes as the symbol renaming confuses the
configure script on architectures that don't provide a compatibilty
symbol, e.g. RISC-V


Revision tags: netbsd-10-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.40 24-Sep-2020 christos

grab the gdbserver version


# 1.39 23-Sep-2020 christos

Add gdbserver


Revision tags: netbsd-9-3-RELEASE netbsd-9-2-RELEASE netbsd-9-1-RELEASE phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609
# 1.38 02-Jun-2019 christos

force libexpat since the autoconfig test are not cross-compile friendly
(they try to link with /usr/lib/libexpat.so in the compiler invocation).


# 1.37 01-Jun-2019 christos

Disable mpfr to make MKCROSSGDB work again. The problem is that the default
(auto) finds the mpfr library in tools, but then when it tries to build using
the proper headers it does not find it anymore since we don't install it
(like the native build does not find it).


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502
# 1.36 01-May-2018 christos

branches: 1.36.2;
Create a new bsd.hostinit.mk file and put the build definitions for all host
programs there; make all Makefiles that use bsd.hostprog.mk include it.
Namely turn off MKREPRO and don't make lint, man pages, info files etc.
Remove the Makefile.inc files that contained these same settings, and
remove the settings from Makefile.host


# 1.35 01-May-2018 christos

PR/53238: Robert Elz: Disable MKREPRO in tools; the host compiler might
not support the necessary options. This is done thusly:

1. Set MKREPRO=no in Makefile.host. This handles all the Makefiles that
use it and don't include bsd.own.mk.
2. Create Makefile.inc and set MKREPRO=no in it. Change the Makefiles that
include bsd.own.mk, to include bsd.init.mk which includes Makefile.inc
first. This will also allow us to control other tools options from a
single location if we need to.

XXX: pullup-8


Revision tags: pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.34 29-Nov-2017 christos

branches: 1.34.2;
we want no-iconv for the tools build, but we want iconv for mknative.


# 1.33 29-Nov-2017 christos

Changes for gdb-8.0.1


# 1.32 28-Nov-2017 christos

Adjust to gdb-8.0.1 which uses c++
XXX: quoting of variables that contain paths and versions is broken.


Revision tags: perseant-stdc-iso10646-base
# 1.31 01-Jul-2017 jmcneill

--disable-nls does not work in gdb subdir, so add am_cv_func_iconv=no to
configure env. Fixes build on FreeBSD.


Revision tags: netbsd-8-0-RC1 matt-nb8-mediatek-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.30 16-Oct-2016 mrg

branches: 1.30.6;
pass GDB_MACHINE_ARCH to mknative-gdb and use that as the subdir.
obtain GDB_MACHINE_ARCH from the new gdb Makefile.gdb_arch.


# 1.29 14-Oct-2016 christos

Fix the host build of aarch64 with clang


# 1.28 12-Oct-2016 christos

Define __STDC_{LIMIT,CONSTANT,FORMAT}_MACROS in CXXFLAGS.
The problem is that the gnulib interception of <stdint.h> and <inttypes.h>
does not really work because we implement those internally with
<sys/inttypes.h> and <sys/stdint.h> and those internal headers are used
by other internal headers *before* they get a chance to be intercepted
(where the __STDC_ macros are defined).

Another way to fix this is to move the inclusion of the other headers
in <stdint.h> and <inttypes.h> outside multiple inclusion protection.


Revision tags: localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.27 26-Jan-2016 christos

branches: 1.27.2;
use EXTERNAL_GDB_SUBDIR


# 1.26 17-Sep-2015 skrll

gdb.old is no more.


# 1.25 16-Aug-2015 christos

add double quotes for consistency


# 1.24 16-Aug-2015 christos

handle gdb-7.9.1


# 1.23 15-Aug-2015 mrg

for now, use gdb.old.


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6 tls-maxphys-base
# 1.22 01-Oct-2012 bouyer

At last on some linux distros, gmake is needed to build the cross-gdb.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-0-5-RELEASE netbsd-6-0-4-RELEASE netbsd-6-0-3-RELEASE netbsd-6-0-2-RELEASE netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.21 09-Feb-2012 skrll

branches: 1.21.2; 1.21.4; 1.21.6;
Disable the sim on mips for next person running gdb7 mknative.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.20 26-Sep-2011 christos

branches: 1.20.2;
remove pre-gcc-4.5 mknative remnants that have long ceased to function.


# 1.19 26-Sep-2011 christos

mknative for gdb7


Revision tags: cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
# 1.18 24-Dec-2010 njoly

Adjust LDFLAGS handling to fix curses detection for mknative-gdb.


# 1.17 08-May-2010 hans

Fix tools build on Solaris with MKCROSSGDB=YES.


# 1.16 23-Dec-2009 mrg

revert the previous; not intended to be part of that commit, or any commit


# 1.15 23-Dec-2009 mrg

rework the main SUBDIR list here as suggested by enami. put .WAIT on
the same line as the target that needs to wait, but before the target,
rather than on the previous line, which led to confusion and an error
being introduced in the previous change.


# 1.14 15-Dec-2009 uebayasi

Fix parallel build. Analyzed & patch provided by enami@, thanks!


# 1.13 14-Dec-2009 christos

disable only parallel make.


# 1.12 14-Dec-2009 uebayasi

Disable parallel build, which always fails at compiling itable.c / interp.c.
Only affect MKCROSSGDB=yes.


Revision tags: matt-premerge-20091211 jym-xensuspend-nbase jym-xensuspend-base
# 1.11 05-Dec-2008 mrg

MACHINE_CPU is "mips" not "xxmips".


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 mjf-devfs2-base wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-baseX yamt-pf42-base2 wrstuden-revivesa-base yamt-pf42-base keiichi-mipv6-nbase keiichi-mipv6-base matt-armv6-nbase matt-armv6-prevmlocking cube-autoconf-base matt-armv6-base matt-mips64-base hpcarm-cleanup-base
# 1.10 19-Feb-2007 chs

disable sim for mips until someone adds the rest of the build framework for it.


Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 wrstuden-fixsa-base netbsd-4-base
# 1.9 25-Nov-2006 skrll

branches: 1.9.2; 1.9.4;
Fix the logic for --disable-sym. Hi uwe!

Use CPPFLAG_ISYSTEM.


# 1.8 24-Nov-2006 uwe

Disable sim for mknative unless it's known to work (configure's
default is to enable sim if there's support for the cpu).

The current list of "known to work" contains arches with G_SIM_OBS
already set: powerpc, powerpc64 and mips.

There's arm support in sim, but committed configs for arm do not have
G_SIM_OBS set, so I'm not enabling it here.

There's SH support in sim, but it fails to build out of the box, and
since we didn't build SH sim support for gdb 5.3, we keep it disabled.

Other arches shouldn't be affected, as there's no support for them in sim.


# 1.7 24-Nov-2006 uwe

Pass preset configure "cache" vars in the environment not only to the
top-level configure, but to ${MAKE} configure-host as well.

Add more vars (for readline mostly) so that there's no configure
warnings about tests skipped b/c of cross-compilation.


# 1.6 23-Nov-2006 uwe

Use -isystem to add ${DESTDIR}/usr/include to the search path.

gdb comes with its own copy of GNU readline 5.x, but
-I${DESTDIR}/usr/include stuffed at the beginning of the command line
makes it find our compat readline/readline.h (emulating readline 2.x)
that conflicts with the readline 5.x includes.

Makes README.mknative instructions actually work instead of failing
midway b/c of conflicting tilde_expand() prototypes.


Revision tags: abandoned-netbsd-4-base
# 1.5 21-Jul-2006 lukem

Configure using --with-separate-debug-dir=/usr/libdata/debug.
(The various MACHINE-specific configurations will need to be regenerated.)


# 1.4 02-Jul-2006 nathanw

Explicitly pass "--prefix=/usr" to configure so that DEBUGDIR and
LOCALEDIR point into /usr rather than /usr/local.


# 1.3 30-May-2006 nathanw

Support .native in an objdir, so I can keep more than one around at a
time.


# 1.2 29-May-2006 nathanw

Support for mknative machinery.


Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-3-base netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.1 26-Oct-2003 cl

add gdb53 as a host tool for use as a crossgdb
replaces gdb50 from toolchain on archs which use gcc3


# 1.42 31-Jul-2023 christos

mknative support for gdb-13.2


# 1.41 08-May-2023 skrll

Set ac_cv_func_sigprocmask=yes as the symbol renaming confuses the
configure script on architectures that don't provide a compatibilty
symbol, e.g. RISC-V


Revision tags: netbsd-10-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.40 24-Sep-2020 christos

grab the gdbserver version


# 1.39 23-Sep-2020 christos

Add gdbserver


Revision tags: netbsd-9-3-RELEASE netbsd-9-2-RELEASE netbsd-9-1-RELEASE phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609
# 1.38 02-Jun-2019 christos

force libexpat since the autoconfig test are not cross-compile friendly
(they try to link with /usr/lib/libexpat.so in the compiler invocation).


# 1.37 01-Jun-2019 christos

Disable mpfr to make MKCROSSGDB work again. The problem is that the default
(auto) finds the mpfr library in tools, but then when it tries to build using
the proper headers it does not find it anymore since we don't install it
(like the native build does not find it).


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502
# 1.36 01-May-2018 christos

branches: 1.36.2;
Create a new bsd.hostinit.mk file and put the build definitions for all host
programs there; make all Makefiles that use bsd.hostprog.mk include it.
Namely turn off MKREPRO and don't make lint, man pages, info files etc.
Remove the Makefile.inc files that contained these same settings, and
remove the settings from Makefile.host


# 1.35 01-May-2018 christos

PR/53238: Robert Elz: Disable MKREPRO in tools; the host compiler might
not support the necessary options. This is done thusly:

1. Set MKREPRO=no in Makefile.host. This handles all the Makefiles that
use it and don't include bsd.own.mk.
2. Create Makefile.inc and set MKREPRO=no in it. Change the Makefiles that
include bsd.own.mk, to include bsd.init.mk which includes Makefile.inc
first. This will also allow us to control other tools options from a
single location if we need to.

XXX: pullup-8


Revision tags: pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.34 29-Nov-2017 christos

branches: 1.34.2;
we want no-iconv for the tools build, but we want iconv for mknative.


# 1.33 29-Nov-2017 christos

Changes for gdb-8.0.1


# 1.32 28-Nov-2017 christos

Adjust to gdb-8.0.1 which uses c++
XXX: quoting of variables that contain paths and versions is broken.


Revision tags: perseant-stdc-iso10646-base
# 1.31 01-Jul-2017 jmcneill

--disable-nls does not work in gdb subdir, so add am_cv_func_iconv=no to
configure env. Fixes build on FreeBSD.


Revision tags: netbsd-8-0-RC1 matt-nb8-mediatek-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.30 16-Oct-2016 mrg

branches: 1.30.6;
pass GDB_MACHINE_ARCH to mknative-gdb and use that as the subdir.
obtain GDB_MACHINE_ARCH from the new gdb Makefile.gdb_arch.


# 1.29 14-Oct-2016 christos

Fix the host build of aarch64 with clang


# 1.28 12-Oct-2016 christos

Define __STDC_{LIMIT,CONSTANT,FORMAT}_MACROS in CXXFLAGS.
The problem is that the gnulib interception of <stdint.h> and <inttypes.h>
does not really work because we implement those internally with
<sys/inttypes.h> and <sys/stdint.h> and those internal headers are used
by other internal headers *before* they get a chance to be intercepted
(where the __STDC_ macros are defined).

Another way to fix this is to move the inclusion of the other headers
in <stdint.h> and <inttypes.h> outside multiple inclusion protection.


Revision tags: localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.27 26-Jan-2016 christos

branches: 1.27.2;
use EXTERNAL_GDB_SUBDIR


# 1.26 17-Sep-2015 skrll

gdb.old is no more.


# 1.25 16-Aug-2015 christos

add double quotes for consistency


# 1.24 16-Aug-2015 christos

handle gdb-7.9.1


# 1.23 15-Aug-2015 mrg

for now, use gdb.old.


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6 tls-maxphys-base
# 1.22 01-Oct-2012 bouyer

At last on some linux distros, gmake is needed to build the cross-gdb.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-0-5-RELEASE netbsd-6-0-4-RELEASE netbsd-6-0-3-RELEASE netbsd-6-0-2-RELEASE netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.21 09-Feb-2012 skrll

branches: 1.21.2; 1.21.4; 1.21.6;
Disable the sim on mips for next person running gdb7 mknative.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.20 26-Sep-2011 christos

branches: 1.20.2;
remove pre-gcc-4.5 mknative remnants that have long ceased to function.


# 1.19 26-Sep-2011 christos

mknative for gdb7


Revision tags: cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
# 1.18 24-Dec-2010 njoly

Adjust LDFLAGS handling to fix curses detection for mknative-gdb.


# 1.17 08-May-2010 hans

Fix tools build on Solaris with MKCROSSGDB=YES.


# 1.16 23-Dec-2009 mrg

revert the previous; not intended to be part of that commit, or any commit


# 1.15 23-Dec-2009 mrg

rework the main SUBDIR list here as suggested by enami. put .WAIT on
the same line as the target that needs to wait, but before the target,
rather than on the previous line, which led to confusion and an error
being introduced in the previous change.


# 1.14 15-Dec-2009 uebayasi

Fix parallel build. Analyzed & patch provided by enami@, thanks!


# 1.13 14-Dec-2009 christos

disable only parallel make.


# 1.12 14-Dec-2009 uebayasi

Disable parallel build, which always fails at compiling itable.c / interp.c.
Only affect MKCROSSGDB=yes.


Revision tags: matt-premerge-20091211 jym-xensuspend-nbase jym-xensuspend-base
# 1.11 05-Dec-2008 mrg

MACHINE_CPU is "mips" not "xxmips".


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 mjf-devfs2-base wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-baseX yamt-pf42-base2 wrstuden-revivesa-base yamt-pf42-base keiichi-mipv6-nbase keiichi-mipv6-base matt-armv6-nbase matt-armv6-prevmlocking cube-autoconf-base matt-armv6-base matt-mips64-base hpcarm-cleanup-base
# 1.10 19-Feb-2007 chs

disable sim for mips until someone adds the rest of the build framework for it.


Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 wrstuden-fixsa-base netbsd-4-base
# 1.9 25-Nov-2006 skrll

branches: 1.9.2; 1.9.4;
Fix the logic for --disable-sym. Hi uwe!

Use CPPFLAG_ISYSTEM.


# 1.8 24-Nov-2006 uwe

Disable sim for mknative unless it's known to work (configure's
default is to enable sim if there's support for the cpu).

The current list of "known to work" contains arches with G_SIM_OBS
already set: powerpc, powerpc64 and mips.

There's arm support in sim, but committed configs for arm do not have
G_SIM_OBS set, so I'm not enabling it here.

There's SH support in sim, but it fails to build out of the box, and
since we didn't build SH sim support for gdb 5.3, we keep it disabled.

Other arches shouldn't be affected, as there's no support for them in sim.


# 1.7 24-Nov-2006 uwe

Pass preset configure "cache" vars in the environment not only to the
top-level configure, but to ${MAKE} configure-host as well.

Add more vars (for readline mostly) so that there's no configure
warnings about tests skipped b/c of cross-compilation.


# 1.6 23-Nov-2006 uwe

Use -isystem to add ${DESTDIR}/usr/include to the search path.

gdb comes with its own copy of GNU readline 5.x, but
-I${DESTDIR}/usr/include stuffed at the beginning of the command line
makes it find our compat readline/readline.h (emulating readline 2.x)
that conflicts with the readline 5.x includes.

Makes README.mknative instructions actually work instead of failing
midway b/c of conflicting tilde_expand() prototypes.


Revision tags: abandoned-netbsd-4-base
# 1.5 21-Jul-2006 lukem

Configure using --with-separate-debug-dir=/usr/libdata/debug.
(The various MACHINE-specific configurations will need to be regenerated.)


# 1.4 02-Jul-2006 nathanw

Explicitly pass "--prefix=/usr" to configure so that DEBUGDIR and
LOCALEDIR point into /usr rather than /usr/local.


# 1.3 30-May-2006 nathanw

Support .native in an objdir, so I can keep more than one around at a
time.


# 1.2 29-May-2006 nathanw

Support for mknative machinery.


Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-3-base netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.1 26-Oct-2003 cl

add gdb53 as a host tool for use as a crossgdb
replaces gdb50 from toolchain on archs which use gcc3


# 1.41 08-May-2023 skrll

Set ac_cv_func_sigprocmask=yes as the symbol renaming confuses the
configure script on architectures that don't provide a compatibilty
symbol, e.g. RISC-V


Revision tags: netbsd-10-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.40 24-Sep-2020 christos

grab the gdbserver version


# 1.39 23-Sep-2020 christos

Add gdbserver


Revision tags: netbsd-9-3-RELEASE netbsd-9-2-RELEASE netbsd-9-1-RELEASE phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609
# 1.38 02-Jun-2019 christos

force libexpat since the autoconfig test are not cross-compile friendly
(they try to link with /usr/lib/libexpat.so in the compiler invocation).


# 1.37 01-Jun-2019 christos

Disable mpfr to make MKCROSSGDB work again. The problem is that the default
(auto) finds the mpfr library in tools, but then when it tries to build using
the proper headers it does not find it anymore since we don't install it
(like the native build does not find it).


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502
# 1.36 01-May-2018 christos

branches: 1.36.2;
Create a new bsd.hostinit.mk file and put the build definitions for all host
programs there; make all Makefiles that use bsd.hostprog.mk include it.
Namely turn off MKREPRO and don't make lint, man pages, info files etc.
Remove the Makefile.inc files that contained these same settings, and
remove the settings from Makefile.host


# 1.35 01-May-2018 christos

PR/53238: Robert Elz: Disable MKREPRO in tools; the host compiler might
not support the necessary options. This is done thusly:

1. Set MKREPRO=no in Makefile.host. This handles all the Makefiles that
use it and don't include bsd.own.mk.
2. Create Makefile.inc and set MKREPRO=no in it. Change the Makefiles that
include bsd.own.mk, to include bsd.init.mk which includes Makefile.inc
first. This will also allow us to control other tools options from a
single location if we need to.

XXX: pullup-8


Revision tags: pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.34 29-Nov-2017 christos

branches: 1.34.2;
we want no-iconv for the tools build, but we want iconv for mknative.


# 1.33 29-Nov-2017 christos

Changes for gdb-8.0.1


# 1.32 28-Nov-2017 christos

Adjust to gdb-8.0.1 which uses c++
XXX: quoting of variables that contain paths and versions is broken.


Revision tags: perseant-stdc-iso10646-base
# 1.31 01-Jul-2017 jmcneill

--disable-nls does not work in gdb subdir, so add am_cv_func_iconv=no to
configure env. Fixes build on FreeBSD.


Revision tags: netbsd-8-0-RC1 matt-nb8-mediatek-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.30 16-Oct-2016 mrg

branches: 1.30.6;
pass GDB_MACHINE_ARCH to mknative-gdb and use that as the subdir.
obtain GDB_MACHINE_ARCH from the new gdb Makefile.gdb_arch.


# 1.29 14-Oct-2016 christos

Fix the host build of aarch64 with clang


# 1.28 12-Oct-2016 christos

Define __STDC_{LIMIT,CONSTANT,FORMAT}_MACROS in CXXFLAGS.
The problem is that the gnulib interception of <stdint.h> and <inttypes.h>
does not really work because we implement those internally with
<sys/inttypes.h> and <sys/stdint.h> and those internal headers are used
by other internal headers *before* they get a chance to be intercepted
(where the __STDC_ macros are defined).

Another way to fix this is to move the inclusion of the other headers
in <stdint.h> and <inttypes.h> outside multiple inclusion protection.


Revision tags: localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.27 26-Jan-2016 christos

branches: 1.27.2;
use EXTERNAL_GDB_SUBDIR


# 1.26 17-Sep-2015 skrll

gdb.old is no more.


# 1.25 16-Aug-2015 christos

add double quotes for consistency


# 1.24 16-Aug-2015 christos

handle gdb-7.9.1


# 1.23 15-Aug-2015 mrg

for now, use gdb.old.


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6 tls-maxphys-base
# 1.22 01-Oct-2012 bouyer

At last on some linux distros, gmake is needed to build the cross-gdb.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-0-5-RELEASE netbsd-6-0-4-RELEASE netbsd-6-0-3-RELEASE netbsd-6-0-2-RELEASE netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.21 09-Feb-2012 skrll

branches: 1.21.2; 1.21.4; 1.21.6;
Disable the sim on mips for next person running gdb7 mknative.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.20 26-Sep-2011 christos

branches: 1.20.2;
remove pre-gcc-4.5 mknative remnants that have long ceased to function.


# 1.19 26-Sep-2011 christos

mknative for gdb7


Revision tags: cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
# 1.18 24-Dec-2010 njoly

Adjust LDFLAGS handling to fix curses detection for mknative-gdb.


# 1.17 08-May-2010 hans

Fix tools build on Solaris with MKCROSSGDB=YES.


# 1.16 23-Dec-2009 mrg

revert the previous; not intended to be part of that commit, or any commit


# 1.15 23-Dec-2009 mrg

rework the main SUBDIR list here as suggested by enami. put .WAIT on
the same line as the target that needs to wait, but before the target,
rather than on the previous line, which led to confusion and an error
being introduced in the previous change.


# 1.14 15-Dec-2009 uebayasi

Fix parallel build. Analyzed & patch provided by enami@, thanks!


# 1.13 14-Dec-2009 christos

disable only parallel make.


# 1.12 14-Dec-2009 uebayasi

Disable parallel build, which always fails at compiling itable.c / interp.c.
Only affect MKCROSSGDB=yes.


Revision tags: matt-premerge-20091211 jym-xensuspend-nbase jym-xensuspend-base
# 1.11 05-Dec-2008 mrg

MACHINE_CPU is "mips" not "xxmips".


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 mjf-devfs2-base wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-baseX yamt-pf42-base2 wrstuden-revivesa-base yamt-pf42-base keiichi-mipv6-nbase keiichi-mipv6-base matt-armv6-nbase matt-armv6-prevmlocking cube-autoconf-base matt-armv6-base matt-mips64-base hpcarm-cleanup-base
# 1.10 19-Feb-2007 chs

disable sim for mips until someone adds the rest of the build framework for it.


Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 wrstuden-fixsa-base netbsd-4-base
# 1.9 25-Nov-2006 skrll

branches: 1.9.2; 1.9.4;
Fix the logic for --disable-sym. Hi uwe!

Use CPPFLAG_ISYSTEM.


# 1.8 24-Nov-2006 uwe

Disable sim for mknative unless it's known to work (configure's
default is to enable sim if there's support for the cpu).

The current list of "known to work" contains arches with G_SIM_OBS
already set: powerpc, powerpc64 and mips.

There's arm support in sim, but committed configs for arm do not have
G_SIM_OBS set, so I'm not enabling it here.

There's SH support in sim, but it fails to build out of the box, and
since we didn't build SH sim support for gdb 5.3, we keep it disabled.

Other arches shouldn't be affected, as there's no support for them in sim.


# 1.7 24-Nov-2006 uwe

Pass preset configure "cache" vars in the environment not only to the
top-level configure, but to ${MAKE} configure-host as well.

Add more vars (for readline mostly) so that there's no configure
warnings about tests skipped b/c of cross-compilation.


# 1.6 23-Nov-2006 uwe

Use -isystem to add ${DESTDIR}/usr/include to the search path.

gdb comes with its own copy of GNU readline 5.x, but
-I${DESTDIR}/usr/include stuffed at the beginning of the command line
makes it find our compat readline/readline.h (emulating readline 2.x)
that conflicts with the readline 5.x includes.

Makes README.mknative instructions actually work instead of failing
midway b/c of conflicting tilde_expand() prototypes.


Revision tags: abandoned-netbsd-4-base
# 1.5 21-Jul-2006 lukem

Configure using --with-separate-debug-dir=/usr/libdata/debug.
(The various MACHINE-specific configurations will need to be regenerated.)


# 1.4 02-Jul-2006 nathanw

Explicitly pass "--prefix=/usr" to configure so that DEBUGDIR and
LOCALEDIR point into /usr rather than /usr/local.


# 1.3 30-May-2006 nathanw

Support .native in an objdir, so I can keep more than one around at a
time.


# 1.2 29-May-2006 nathanw

Support for mknative machinery.


Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-3-base netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.1 26-Oct-2003 cl

add gdb53 as a host tool for use as a crossgdb
replaces gdb50 from toolchain on archs which use gcc3


# 1.40 24-Sep-2020 christos

grab the gdbserver version


# 1.39 23-Sep-2020 christos

Add gdbserver


Revision tags: phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609
# 1.38 02-Jun-2019 christos

force libexpat since the autoconfig test are not cross-compile friendly
(they try to link with /usr/lib/libexpat.so in the compiler invocation).


# 1.37 01-Jun-2019 christos

Disable mpfr to make MKCROSSGDB work again. The problem is that the default
(auto) finds the mpfr library in tools, but then when it tries to build using
the proper headers it does not find it anymore since we don't install it
(like the native build does not find it).


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502
# 1.36 01-May-2018 christos

branches: 1.36.2;
Create a new bsd.hostinit.mk file and put the build definitions for all host
programs there; make all Makefiles that use bsd.hostprog.mk include it.
Namely turn off MKREPRO and don't make lint, man pages, info files etc.
Remove the Makefile.inc files that contained these same settings, and
remove the settings from Makefile.host


# 1.35 01-May-2018 christos

PR/53238: Robert Elz: Disable MKREPRO in tools; the host compiler might
not support the necessary options. This is done thusly:

1. Set MKREPRO=no in Makefile.host. This handles all the Makefiles that
use it and don't include bsd.own.mk.
2. Create Makefile.inc and set MKREPRO=no in it. Change the Makefiles that
include bsd.own.mk, to include bsd.init.mk which includes Makefile.inc
first. This will also allow us to control other tools options from a
single location if we need to.

XXX: pullup-8


Revision tags: pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.34 29-Nov-2017 christos

branches: 1.34.2;
we want no-iconv for the tools build, but we want iconv for mknative.


# 1.33 29-Nov-2017 christos

Changes for gdb-8.0.1


# 1.32 28-Nov-2017 christos

Adjust to gdb-8.0.1 which uses c++
XXX: quoting of variables that contain paths and versions is broken.


Revision tags: perseant-stdc-iso10646-base
# 1.31 01-Jul-2017 jmcneill

--disable-nls does not work in gdb subdir, so add am_cv_func_iconv=no to
configure env. Fixes build on FreeBSD.


Revision tags: netbsd-8-0-RC1 matt-nb8-mediatek-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.30 16-Oct-2016 mrg

branches: 1.30.6;
pass GDB_MACHINE_ARCH to mknative-gdb and use that as the subdir.
obtain GDB_MACHINE_ARCH from the new gdb Makefile.gdb_arch.


# 1.29 14-Oct-2016 christos

Fix the host build of aarch64 with clang


# 1.28 12-Oct-2016 christos

Define __STDC_{LIMIT,CONSTANT,FORMAT}_MACROS in CXXFLAGS.
The problem is that the gnulib interception of <stdint.h> and <inttypes.h>
does not really work because we implement those internally with
<sys/inttypes.h> and <sys/stdint.h> and those internal headers are used
by other internal headers *before* they get a chance to be intercepted
(where the __STDC_ macros are defined).

Another way to fix this is to move the inclusion of the other headers
in <stdint.h> and <inttypes.h> outside multiple inclusion protection.


Revision tags: localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.27 26-Jan-2016 christos

branches: 1.27.2;
use EXTERNAL_GDB_SUBDIR


# 1.26 17-Sep-2015 skrll

gdb.old is no more.


# 1.25 16-Aug-2015 christos

add double quotes for consistency


# 1.24 16-Aug-2015 christos

handle gdb-7.9.1


# 1.23 15-Aug-2015 mrg

for now, use gdb.old.


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6 tls-maxphys-base
# 1.22 01-Oct-2012 bouyer

At last on some linux distros, gmake is needed to build the cross-gdb.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-0-5-RELEASE netbsd-6-0-4-RELEASE netbsd-6-0-3-RELEASE netbsd-6-0-2-RELEASE netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.21 09-Feb-2012 skrll

branches: 1.21.2; 1.21.4; 1.21.6;
Disable the sim on mips for next person running gdb7 mknative.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.20 26-Sep-2011 christos

branches: 1.20.2;
remove pre-gcc-4.5 mknative remnants that have long ceased to function.


# 1.19 26-Sep-2011 christos

mknative for gdb7


Revision tags: cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
# 1.18 24-Dec-2010 njoly

Adjust LDFLAGS handling to fix curses detection for mknative-gdb.


# 1.17 08-May-2010 hans

Fix tools build on Solaris with MKCROSSGDB=YES.


# 1.16 23-Dec-2009 mrg

revert the previous; not intended to be part of that commit, or any commit


# 1.15 23-Dec-2009 mrg

rework the main SUBDIR list here as suggested by enami. put .WAIT on
the same line as the target that needs to wait, but before the target,
rather than on the previous line, which led to confusion and an error
being introduced in the previous change.


# 1.14 15-Dec-2009 uebayasi

Fix parallel build. Analyzed & patch provided by enami@, thanks!


# 1.13 14-Dec-2009 christos

disable only parallel make.


# 1.12 14-Dec-2009 uebayasi

Disable parallel build, which always fails at compiling itable.c / interp.c.
Only affect MKCROSSGDB=yes.


Revision tags: matt-premerge-20091211 jym-xensuspend-nbase jym-xensuspend-base
# 1.11 05-Dec-2008 mrg

MACHINE_CPU is "mips" not "xxmips".


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 mjf-devfs2-base wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-baseX yamt-pf42-base2 wrstuden-revivesa-base yamt-pf42-base keiichi-mipv6-nbase keiichi-mipv6-base matt-armv6-nbase matt-armv6-prevmlocking cube-autoconf-base matt-armv6-base matt-mips64-base hpcarm-cleanup-base
# 1.10 19-Feb-2007 chs

disable sim for mips until someone adds the rest of the build framework for it.


Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 wrstuden-fixsa-base netbsd-4-base
# 1.9 25-Nov-2006 skrll

branches: 1.9.2; 1.9.4;
Fix the logic for --disable-sym. Hi uwe!

Use CPPFLAG_ISYSTEM.


# 1.8 24-Nov-2006 uwe

Disable sim for mknative unless it's known to work (configure's
default is to enable sim if there's support for the cpu).

The current list of "known to work" contains arches with G_SIM_OBS
already set: powerpc, powerpc64 and mips.

There's arm support in sim, but committed configs for arm do not have
G_SIM_OBS set, so I'm not enabling it here.

There's SH support in sim, but it fails to build out of the box, and
since we didn't build SH sim support for gdb 5.3, we keep it disabled.

Other arches shouldn't be affected, as there's no support for them in sim.


# 1.7 24-Nov-2006 uwe

Pass preset configure "cache" vars in the environment not only to the
top-level configure, but to ${MAKE} configure-host as well.

Add more vars (for readline mostly) so that there's no configure
warnings about tests skipped b/c of cross-compilation.


# 1.6 23-Nov-2006 uwe

Use -isystem to add ${DESTDIR}/usr/include to the search path.

gdb comes with its own copy of GNU readline 5.x, but
-I${DESTDIR}/usr/include stuffed at the beginning of the command line
makes it find our compat readline/readline.h (emulating readline 2.x)
that conflicts with the readline 5.x includes.

Makes README.mknative instructions actually work instead of failing
midway b/c of conflicting tilde_expand() prototypes.


Revision tags: abandoned-netbsd-4-base
# 1.5 21-Jul-2006 lukem

Configure using --with-separate-debug-dir=/usr/libdata/debug.
(The various MACHINE-specific configurations will need to be regenerated.)


# 1.4 02-Jul-2006 nathanw

Explicitly pass "--prefix=/usr" to configure so that DEBUGDIR and
LOCALEDIR point into /usr rather than /usr/local.


# 1.3 30-May-2006 nathanw

Support .native in an objdir, so I can keep more than one around at a
time.


# 1.2 29-May-2006 nathanw

Support for mknative machinery.


Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-3-base netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.1 26-Oct-2003 cl

add gdb53 as a host tool for use as a crossgdb
replaces gdb50 from toolchain on archs which use gcc3


# 1.38 02-Jun-2019 christos

force libexpat since the autoconfig test are not cross-compile friendly
(they try to link with /usr/lib/libexpat.so in the compiler invocation).


# 1.37 01-Jun-2019 christos

Disable mpfr to make MKCROSSGDB work again. The problem is that the default
(auto) finds the mpfr library in tools, but then when it tries to build using
the proper headers it does not find it anymore since we don't install it
(like the native build does not find it).


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502
# 1.36 01-May-2018 christos

Create a new bsd.hostinit.mk file and put the build definitions for all host
programs there; make all Makefiles that use bsd.hostprog.mk include it.
Namely turn off MKREPRO and don't make lint, man pages, info files etc.
Remove the Makefile.inc files that contained these same settings, and
remove the settings from Makefile.host


# 1.35 01-May-2018 christos

PR/53238: Robert Elz: Disable MKREPRO in tools; the host compiler might
not support the necessary options. This is done thusly:

1. Set MKREPRO=no in Makefile.host. This handles all the Makefiles that
use it and don't include bsd.own.mk.
2. Create Makefile.inc and set MKREPRO=no in it. Change the Makefiles that
include bsd.own.mk, to include bsd.init.mk which includes Makefile.inc
first. This will also allow us to control other tools options from a
single location if we need to.

XXX: pullup-8


Revision tags: pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.34 29-Nov-2017 christos

branches: 1.34.2;
we want no-iconv for the tools build, but we want iconv for mknative.


# 1.33 29-Nov-2017 christos

Changes for gdb-8.0.1


# 1.32 28-Nov-2017 christos

Adjust to gdb-8.0.1 which uses c++
XXX: quoting of variables that contain paths and versions is broken.


Revision tags: perseant-stdc-iso10646-base
# 1.31 01-Jul-2017 jmcneill

--disable-nls does not work in gdb subdir, so add am_cv_func_iconv=no to
configure env. Fixes build on FreeBSD.


Revision tags: netbsd-8-0-RC1 matt-nb8-mediatek-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.30 16-Oct-2016 mrg

branches: 1.30.6;
pass GDB_MACHINE_ARCH to mknative-gdb and use that as the subdir.
obtain GDB_MACHINE_ARCH from the new gdb Makefile.gdb_arch.


# 1.29 14-Oct-2016 christos

Fix the host build of aarch64 with clang


# 1.28 12-Oct-2016 christos

Define __STDC_{LIMIT,CONSTANT,FORMAT}_MACROS in CXXFLAGS.
The problem is that the gnulib interception of <stdint.h> and <inttypes.h>
does not really work because we implement those internally with
<sys/inttypes.h> and <sys/stdint.h> and those internal headers are used
by other internal headers *before* they get a chance to be intercepted
(where the __STDC_ macros are defined).

Another way to fix this is to move the inclusion of the other headers
in <stdint.h> and <inttypes.h> outside multiple inclusion protection.


Revision tags: localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.27 26-Jan-2016 christos

branches: 1.27.2;
use EXTERNAL_GDB_SUBDIR


# 1.26 17-Sep-2015 skrll

gdb.old is no more.


# 1.25 16-Aug-2015 christos

add double quotes for consistency


# 1.24 16-Aug-2015 christos

handle gdb-7.9.1


# 1.23 15-Aug-2015 mrg

for now, use gdb.old.


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6 tls-maxphys-base
# 1.22 01-Oct-2012 bouyer

At last on some linux distros, gmake is needed to build the cross-gdb.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-0-5-RELEASE netbsd-6-0-4-RELEASE netbsd-6-0-3-RELEASE netbsd-6-0-2-RELEASE netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.21 09-Feb-2012 skrll

branches: 1.21.2; 1.21.4; 1.21.6;
Disable the sim on mips for next person running gdb7 mknative.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.20 26-Sep-2011 christos

branches: 1.20.2;
remove pre-gcc-4.5 mknative remnants that have long ceased to function.


# 1.19 26-Sep-2011 christos

mknative for gdb7


Revision tags: cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
# 1.18 24-Dec-2010 njoly

Adjust LDFLAGS handling to fix curses detection for mknative-gdb.


# 1.17 08-May-2010 hans

Fix tools build on Solaris with MKCROSSGDB=YES.


# 1.16 23-Dec-2009 mrg

revert the previous; not intended to be part of that commit, or any commit


# 1.15 23-Dec-2009 mrg

rework the main SUBDIR list here as suggested by enami. put .WAIT on
the same line as the target that needs to wait, but before the target,
rather than on the previous line, which led to confusion and an error
being introduced in the previous change.


# 1.14 15-Dec-2009 uebayasi

Fix parallel build. Analyzed & patch provided by enami@, thanks!


# 1.13 14-Dec-2009 christos

disable only parallel make.


# 1.12 14-Dec-2009 uebayasi

Disable parallel build, which always fails at compiling itable.c / interp.c.
Only affect MKCROSSGDB=yes.


Revision tags: matt-premerge-20091211 jym-xensuspend-nbase jym-xensuspend-base
# 1.11 05-Dec-2008 mrg

MACHINE_CPU is "mips" not "xxmips".


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 mjf-devfs2-base wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-baseX yamt-pf42-base2 wrstuden-revivesa-base yamt-pf42-base keiichi-mipv6-nbase keiichi-mipv6-base matt-armv6-nbase matt-armv6-prevmlocking cube-autoconf-base matt-armv6-base matt-mips64-base hpcarm-cleanup-base
# 1.10 19-Feb-2007 chs

disable sim for mips until someone adds the rest of the build framework for it.


Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 wrstuden-fixsa-base netbsd-4-base
# 1.9 25-Nov-2006 skrll

branches: 1.9.2; 1.9.4;
Fix the logic for --disable-sym. Hi uwe!

Use CPPFLAG_ISYSTEM.


# 1.8 24-Nov-2006 uwe

Disable sim for mknative unless it's known to work (configure's
default is to enable sim if there's support for the cpu).

The current list of "known to work" contains arches with G_SIM_OBS
already set: powerpc, powerpc64 and mips.

There's arm support in sim, but committed configs for arm do not have
G_SIM_OBS set, so I'm not enabling it here.

There's SH support in sim, but it fails to build out of the box, and
since we didn't build SH sim support for gdb 5.3, we keep it disabled.

Other arches shouldn't be affected, as there's no support for them in sim.


# 1.7 24-Nov-2006 uwe

Pass preset configure "cache" vars in the environment not only to the
top-level configure, but to ${MAKE} configure-host as well.

Add more vars (for readline mostly) so that there's no configure
warnings about tests skipped b/c of cross-compilation.


# 1.6 23-Nov-2006 uwe

Use -isystem to add ${DESTDIR}/usr/include to the search path.

gdb comes with its own copy of GNU readline 5.x, but
-I${DESTDIR}/usr/include stuffed at the beginning of the command line
makes it find our compat readline/readline.h (emulating readline 2.x)
that conflicts with the readline 5.x includes.

Makes README.mknative instructions actually work instead of failing
midway b/c of conflicting tilde_expand() prototypes.


Revision tags: abandoned-netbsd-4-base
# 1.5 21-Jul-2006 lukem

Configure using --with-separate-debug-dir=/usr/libdata/debug.
(The various MACHINE-specific configurations will need to be regenerated.)


# 1.4 02-Jul-2006 nathanw

Explicitly pass "--prefix=/usr" to configure so that DEBUGDIR and
LOCALEDIR point into /usr rather than /usr/local.


# 1.3 30-May-2006 nathanw

Support .native in an objdir, so I can keep more than one around at a
time.


# 1.2 29-May-2006 nathanw

Support for mknative machinery.


Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-3-base netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.1 26-Oct-2003 cl

add gdb53 as a host tool for use as a crossgdb
replaces gdb50 from toolchain on archs which use gcc3


# 1.37 01-Jun-2019 christos

Disable mpfr to make MKCROSSGDB work again. The problem is that the default
(auto) finds the mpfr library in tools, but then when it tries to build using
the proper headers it does not find it anymore since we don't install it
(like the native build does not find it).


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502
# 1.36 01-May-2018 christos

Create a new bsd.hostinit.mk file and put the build definitions for all host
programs there; make all Makefiles that use bsd.hostprog.mk include it.
Namely turn off MKREPRO and don't make lint, man pages, info files etc.
Remove the Makefile.inc files that contained these same settings, and
remove the settings from Makefile.host


# 1.35 01-May-2018 christos

PR/53238: Robert Elz: Disable MKREPRO in tools; the host compiler might
not support the necessary options. This is done thusly:

1. Set MKREPRO=no in Makefile.host. This handles all the Makefiles that
use it and don't include bsd.own.mk.
2. Create Makefile.inc and set MKREPRO=no in it. Change the Makefiles that
include bsd.own.mk, to include bsd.init.mk which includes Makefile.inc
first. This will also allow us to control other tools options from a
single location if we need to.

XXX: pullup-8


Revision tags: pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.34 29-Nov-2017 christos

branches: 1.34.2;
we want no-iconv for the tools build, but we want iconv for mknative.


# 1.33 29-Nov-2017 christos

Changes for gdb-8.0.1


# 1.32 28-Nov-2017 christos

Adjust to gdb-8.0.1 which uses c++
XXX: quoting of variables that contain paths and versions is broken.


Revision tags: perseant-stdc-iso10646-base
# 1.31 01-Jul-2017 jmcneill

--disable-nls does not work in gdb subdir, so add am_cv_func_iconv=no to
configure env. Fixes build on FreeBSD.


Revision tags: netbsd-8-0-RC1 matt-nb8-mediatek-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.30 16-Oct-2016 mrg

branches: 1.30.6;
pass GDB_MACHINE_ARCH to mknative-gdb and use that as the subdir.
obtain GDB_MACHINE_ARCH from the new gdb Makefile.gdb_arch.


# 1.29 14-Oct-2016 christos

Fix the host build of aarch64 with clang


# 1.28 12-Oct-2016 christos

Define __STDC_{LIMIT,CONSTANT,FORMAT}_MACROS in CXXFLAGS.
The problem is that the gnulib interception of <stdint.h> and <inttypes.h>
does not really work because we implement those internally with
<sys/inttypes.h> and <sys/stdint.h> and those internal headers are used
by other internal headers *before* they get a chance to be intercepted
(where the __STDC_ macros are defined).

Another way to fix this is to move the inclusion of the other headers
in <stdint.h> and <inttypes.h> outside multiple inclusion protection.


Revision tags: localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.27 26-Jan-2016 christos

branches: 1.27.2;
use EXTERNAL_GDB_SUBDIR


# 1.26 17-Sep-2015 skrll

gdb.old is no more.


# 1.25 16-Aug-2015 christos

add double quotes for consistency


# 1.24 16-Aug-2015 christos

handle gdb-7.9.1


# 1.23 15-Aug-2015 mrg

for now, use gdb.old.


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6 tls-maxphys-base
# 1.22 01-Oct-2012 bouyer

At last on some linux distros, gmake is needed to build the cross-gdb.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-0-5-RELEASE netbsd-6-0-4-RELEASE netbsd-6-0-3-RELEASE netbsd-6-0-2-RELEASE netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.21 09-Feb-2012 skrll

branches: 1.21.2; 1.21.4; 1.21.6;
Disable the sim on mips for next person running gdb7 mknative.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.20 26-Sep-2011 christos

branches: 1.20.2;
remove pre-gcc-4.5 mknative remnants that have long ceased to function.


# 1.19 26-Sep-2011 christos

mknative for gdb7


Revision tags: cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
# 1.18 24-Dec-2010 njoly

Adjust LDFLAGS handling to fix curses detection for mknative-gdb.


# 1.17 08-May-2010 hans

Fix tools build on Solaris with MKCROSSGDB=YES.


# 1.16 23-Dec-2009 mrg

revert the previous; not intended to be part of that commit, or any commit


# 1.15 23-Dec-2009 mrg

rework the main SUBDIR list here as suggested by enami. put .WAIT on
the same line as the target that needs to wait, but before the target,
rather than on the previous line, which led to confusion and an error
being introduced in the previous change.


# 1.14 15-Dec-2009 uebayasi

Fix parallel build. Analyzed & patch provided by enami@, thanks!


# 1.13 14-Dec-2009 christos

disable only parallel make.


# 1.12 14-Dec-2009 uebayasi

Disable parallel build, which always fails at compiling itable.c / interp.c.
Only affect MKCROSSGDB=yes.


Revision tags: matt-premerge-20091211 jym-xensuspend-nbase jym-xensuspend-base
# 1.11 05-Dec-2008 mrg

MACHINE_CPU is "mips" not "xxmips".


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 mjf-devfs2-base wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-baseX yamt-pf42-base2 wrstuden-revivesa-base yamt-pf42-base keiichi-mipv6-nbase keiichi-mipv6-base matt-armv6-nbase matt-armv6-prevmlocking cube-autoconf-base matt-armv6-base matt-mips64-base hpcarm-cleanup-base
# 1.10 19-Feb-2007 chs

disable sim for mips until someone adds the rest of the build framework for it.


Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 wrstuden-fixsa-base netbsd-4-base
# 1.9 25-Nov-2006 skrll

branches: 1.9.2; 1.9.4;
Fix the logic for --disable-sym. Hi uwe!

Use CPPFLAG_ISYSTEM.


# 1.8 24-Nov-2006 uwe

Disable sim for mknative unless it's known to work (configure's
default is to enable sim if there's support for the cpu).

The current list of "known to work" contains arches with G_SIM_OBS
already set: powerpc, powerpc64 and mips.

There's arm support in sim, but committed configs for arm do not have
G_SIM_OBS set, so I'm not enabling it here.

There's SH support in sim, but it fails to build out of the box, and
since we didn't build SH sim support for gdb 5.3, we keep it disabled.

Other arches shouldn't be affected, as there's no support for them in sim.


# 1.7 24-Nov-2006 uwe

Pass preset configure "cache" vars in the environment not only to the
top-level configure, but to ${MAKE} configure-host as well.

Add more vars (for readline mostly) so that there's no configure
warnings about tests skipped b/c of cross-compilation.


# 1.6 23-Nov-2006 uwe

Use -isystem to add ${DESTDIR}/usr/include to the search path.

gdb comes with its own copy of GNU readline 5.x, but
-I${DESTDIR}/usr/include stuffed at the beginning of the command line
makes it find our compat readline/readline.h (emulating readline 2.x)
that conflicts with the readline 5.x includes.

Makes README.mknative instructions actually work instead of failing
midway b/c of conflicting tilde_expand() prototypes.


Revision tags: abandoned-netbsd-4-base
# 1.5 21-Jul-2006 lukem

Configure using --with-separate-debug-dir=/usr/libdata/debug.
(The various MACHINE-specific configurations will need to be regenerated.)


# 1.4 02-Jul-2006 nathanw

Explicitly pass "--prefix=/usr" to configure so that DEBUGDIR and
LOCALEDIR point into /usr rather than /usr/local.


# 1.3 30-May-2006 nathanw

Support .native in an objdir, so I can keep more than one around at a
time.


# 1.2 29-May-2006 nathanw

Support for mknative machinery.


Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-3-base netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.1 26-Oct-2003 cl

add gdb53 as a host tool for use as a crossgdb
replaces gdb50 from toolchain on archs which use gcc3


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502
# 1.36 01-May-2018 christos

Create a new bsd.hostinit.mk file and put the build definitions for all host
programs there; make all Makefiles that use bsd.hostprog.mk include it.
Namely turn off MKREPRO and don't make lint, man pages, info files etc.
Remove the Makefile.inc files that contained these same settings, and
remove the settings from Makefile.host


# 1.35 01-May-2018 christos

PR/53238: Robert Elz: Disable MKREPRO in tools; the host compiler might
not support the necessary options. This is done thusly:

1. Set MKREPRO=no in Makefile.host. This handles all the Makefiles that
use it and don't include bsd.own.mk.
2. Create Makefile.inc and set MKREPRO=no in it. Change the Makefiles that
include bsd.own.mk, to include bsd.init.mk which includes Makefile.inc
first. This will also allow us to control other tools options from a
single location if we need to.

XXX: pullup-8


Revision tags: pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.34 29-Nov-2017 christos

branches: 1.34.2;
we want no-iconv for the tools build, but we want iconv for mknative.


# 1.33 29-Nov-2017 christos

Changes for gdb-8.0.1


# 1.32 28-Nov-2017 christos

Adjust to gdb-8.0.1 which uses c++
XXX: quoting of variables that contain paths and versions is broken.


Revision tags: perseant-stdc-iso10646-base
# 1.31 01-Jul-2017 jmcneill

--disable-nls does not work in gdb subdir, so add am_cv_func_iconv=no to
configure env. Fixes build on FreeBSD.


Revision tags: netbsd-8-0-RC1 matt-nb8-mediatek-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.30 16-Oct-2016 mrg

branches: 1.30.6;
pass GDB_MACHINE_ARCH to mknative-gdb and use that as the subdir.
obtain GDB_MACHINE_ARCH from the new gdb Makefile.gdb_arch.


# 1.29 14-Oct-2016 christos

Fix the host build of aarch64 with clang


# 1.28 12-Oct-2016 christos

Define __STDC_{LIMIT,CONSTANT,FORMAT}_MACROS in CXXFLAGS.
The problem is that the gnulib interception of <stdint.h> and <inttypes.h>
does not really work because we implement those internally with
<sys/inttypes.h> and <sys/stdint.h> and those internal headers are used
by other internal headers *before* they get a chance to be intercepted
(where the __STDC_ macros are defined).

Another way to fix this is to move the inclusion of the other headers
in <stdint.h> and <inttypes.h> outside multiple inclusion protection.


Revision tags: localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.27 26-Jan-2016 christos

branches: 1.27.2;
use EXTERNAL_GDB_SUBDIR


# 1.26 17-Sep-2015 skrll

gdb.old is no more.


# 1.25 16-Aug-2015 christos

add double quotes for consistency


# 1.24 16-Aug-2015 christos

handle gdb-7.9.1


# 1.23 15-Aug-2015 mrg

for now, use gdb.old.


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6 tls-maxphys-base
# 1.22 01-Oct-2012 bouyer

At last on some linux distros, gmake is needed to build the cross-gdb.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-0-5-RELEASE netbsd-6-0-4-RELEASE netbsd-6-0-3-RELEASE netbsd-6-0-2-RELEASE netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.21 09-Feb-2012 skrll

branches: 1.21.2; 1.21.4; 1.21.6;
Disable the sim on mips for next person running gdb7 mknative.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.20 26-Sep-2011 christos

branches: 1.20.2;
remove pre-gcc-4.5 mknative remnants that have long ceased to function.


# 1.19 26-Sep-2011 christos

mknative for gdb7


Revision tags: cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
# 1.18 24-Dec-2010 njoly

Adjust LDFLAGS handling to fix curses detection for mknative-gdb.


# 1.17 08-May-2010 hans

Fix tools build on Solaris with MKCROSSGDB=YES.


# 1.16 23-Dec-2009 mrg

revert the previous; not intended to be part of that commit, or any commit


# 1.15 23-Dec-2009 mrg

rework the main SUBDIR list here as suggested by enami. put .WAIT on
the same line as the target that needs to wait, but before the target,
rather than on the previous line, which led to confusion and an error
being introduced in the previous change.


# 1.14 15-Dec-2009 uebayasi

Fix parallel build. Analyzed & patch provided by enami@, thanks!


# 1.13 14-Dec-2009 christos

disable only parallel make.


# 1.12 14-Dec-2009 uebayasi

Disable parallel build, which always fails at compiling itable.c / interp.c.
Only affect MKCROSSGDB=yes.


Revision tags: matt-premerge-20091211 jym-xensuspend-nbase jym-xensuspend-base
# 1.11 05-Dec-2008 mrg

MACHINE_CPU is "mips" not "xxmips".


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 mjf-devfs2-base wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-baseX yamt-pf42-base2 wrstuden-revivesa-base yamt-pf42-base keiichi-mipv6-nbase keiichi-mipv6-base matt-armv6-nbase matt-armv6-prevmlocking cube-autoconf-base matt-armv6-base matt-mips64-base hpcarm-cleanup-base
# 1.10 19-Feb-2007 chs

disable sim for mips until someone adds the rest of the build framework for it.


Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 wrstuden-fixsa-base netbsd-4-base
# 1.9 25-Nov-2006 skrll

branches: 1.9.2; 1.9.4;
Fix the logic for --disable-sym. Hi uwe!

Use CPPFLAG_ISYSTEM.


# 1.8 24-Nov-2006 uwe

Disable sim for mknative unless it's known to work (configure's
default is to enable sim if there's support for the cpu).

The current list of "known to work" contains arches with G_SIM_OBS
already set: powerpc, powerpc64 and mips.

There's arm support in sim, but committed configs for arm do not have
G_SIM_OBS set, so I'm not enabling it here.

There's SH support in sim, but it fails to build out of the box, and
since we didn't build SH sim support for gdb 5.3, we keep it disabled.

Other arches shouldn't be affected, as there's no support for them in sim.


# 1.7 24-Nov-2006 uwe

Pass preset configure "cache" vars in the environment not only to the
top-level configure, but to ${MAKE} configure-host as well.

Add more vars (for readline mostly) so that there's no configure
warnings about tests skipped b/c of cross-compilation.


# 1.6 23-Nov-2006 uwe

Use -isystem to add ${DESTDIR}/usr/include to the search path.

gdb comes with its own copy of GNU readline 5.x, but
-I${DESTDIR}/usr/include stuffed at the beginning of the command line
makes it find our compat readline/readline.h (emulating readline 2.x)
that conflicts with the readline 5.x includes.

Makes README.mknative instructions actually work instead of failing
midway b/c of conflicting tilde_expand() prototypes.


Revision tags: abandoned-netbsd-4-base
# 1.5 21-Jul-2006 lukem

Configure using --with-separate-debug-dir=/usr/libdata/debug.
(The various MACHINE-specific configurations will need to be regenerated.)


# 1.4 02-Jul-2006 nathanw

Explicitly pass "--prefix=/usr" to configure so that DEBUGDIR and
LOCALEDIR point into /usr rather than /usr/local.


# 1.3 30-May-2006 nathanw

Support .native in an objdir, so I can keep more than one around at a
time.


# 1.2 29-May-2006 nathanw

Support for mknative machinery.


Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-3-base netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.1 26-Oct-2003 cl

add gdb53 as a host tool for use as a crossgdb
replaces gdb50 from toolchain on archs which use gcc3


# 1.34 29-Nov-2017 christos

we want no-iconv for the tools build, but we want iconv for mknative.


# 1.33 29-Nov-2017 christos

Changes for gdb-8.0.1


# 1.32 28-Nov-2017 christos

Adjust to gdb-8.0.1 which uses c++
XXX: quoting of variables that contain paths and versions is broken.


Revision tags: perseant-stdc-iso10646-base
# 1.31 01-Jul-2017 jmcneill

--disable-nls does not work in gdb subdir, so add am_cv_func_iconv=no to
configure env. Fixes build on FreeBSD.


Revision tags: matt-nb8-mediatek-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.30 16-Oct-2016 mrg

pass GDB_MACHINE_ARCH to mknative-gdb and use that as the subdir.
obtain GDB_MACHINE_ARCH from the new gdb Makefile.gdb_arch.


# 1.29 14-Oct-2016 christos

Fix the host build of aarch64 with clang


# 1.28 12-Oct-2016 christos

Define __STDC_{LIMIT,CONSTANT,FORMAT}_MACROS in CXXFLAGS.
The problem is that the gnulib interception of <stdint.h> and <inttypes.h>
does not really work because we implement those internally with
<sys/inttypes.h> and <sys/stdint.h> and those internal headers are used
by other internal headers *before* they get a chance to be intercepted
(where the __STDC_ macros are defined).

Another way to fix this is to move the inclusion of the other headers
in <stdint.h> and <inttypes.h> outside multiple inclusion protection.


Revision tags: localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.27 26-Jan-2016 christos

branches: 1.27.2;
use EXTERNAL_GDB_SUBDIR


# 1.26 17-Sep-2015 skrll

gdb.old is no more.


# 1.25 16-Aug-2015 christos

add double quotes for consistency


# 1.24 16-Aug-2015 christos

handle gdb-7.9.1


# 1.23 15-Aug-2015 mrg

for now, use gdb.old.


Revision tags: netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6 tls-maxphys-base
# 1.22 01-Oct-2012 bouyer

At last on some linux distros, gmake is needed to build the cross-gdb.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-0-5-RELEASE netbsd-6-0-4-RELEASE netbsd-6-0-3-RELEASE netbsd-6-0-2-RELEASE netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.21 09-Feb-2012 skrll

branches: 1.21.2; 1.21.4; 1.21.6;
Disable the sim on mips for next person running gdb7 mknative.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.20 26-Sep-2011 christos

branches: 1.20.2;
remove pre-gcc-4.5 mknative remnants that have long ceased to function.


# 1.19 26-Sep-2011 christos

mknative for gdb7


Revision tags: cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
# 1.18 24-Dec-2010 njoly

Adjust LDFLAGS handling to fix curses detection for mknative-gdb.


# 1.17 08-May-2010 hans

Fix tools build on Solaris with MKCROSSGDB=YES.


# 1.16 23-Dec-2009 mrg

revert the previous; not intended to be part of that commit, or any commit


# 1.15 23-Dec-2009 mrg

rework the main SUBDIR list here as suggested by enami. put .WAIT on
the same line as the target that needs to wait, but before the target,
rather than on the previous line, which led to confusion and an error
being introduced in the previous change.


# 1.14 15-Dec-2009 uebayasi

Fix parallel build. Analyzed & patch provided by enami@, thanks!


# 1.13 14-Dec-2009 christos

disable only parallel make.


# 1.12 14-Dec-2009 uebayasi

Disable parallel build, which always fails at compiling itable.c / interp.c.
Only affect MKCROSSGDB=yes.


Revision tags: matt-premerge-20091211 jym-xensuspend-nbase jym-xensuspend-base
# 1.11 05-Dec-2008 mrg

MACHINE_CPU is "mips" not "xxmips".


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 mjf-devfs2-base wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-baseX yamt-pf42-base2 wrstuden-revivesa-base yamt-pf42-base keiichi-mipv6-nbase keiichi-mipv6-base matt-armv6-nbase matt-armv6-prevmlocking cube-autoconf-base matt-armv6-base matt-mips64-base hpcarm-cleanup-base
# 1.10 19-Feb-2007 chs

disable sim for mips until someone adds the rest of the build framework for it.


Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 wrstuden-fixsa-base netbsd-4-base
# 1.9 25-Nov-2006 skrll

branches: 1.9.2; 1.9.4;
Fix the logic for --disable-sym. Hi uwe!

Use CPPFLAG_ISYSTEM.


# 1.8 24-Nov-2006 uwe

Disable sim for mknative unless it's known to work (configure's
default is to enable sim if there's support for the cpu).

The current list of "known to work" contains arches with G_SIM_OBS
already set: powerpc, powerpc64 and mips.

There's arm support in sim, but committed configs for arm do not have
G_SIM_OBS set, so I'm not enabling it here.

There's SH support in sim, but it fails to build out of the box, and
since we didn't build SH sim support for gdb 5.3, we keep it disabled.

Other arches shouldn't be affected, as there's no support for them in sim.


# 1.7 24-Nov-2006 uwe

Pass preset configure "cache" vars in the environment not only to the
top-level configure, but to ${MAKE} configure-host as well.

Add more vars (for readline mostly) so that there's no configure
warnings about tests skipped b/c of cross-compilation.


# 1.6 23-Nov-2006 uwe

Use -isystem to add ${DESTDIR}/usr/include to the search path.

gdb comes with its own copy of GNU readline 5.x, but
-I${DESTDIR}/usr/include stuffed at the beginning of the command line
makes it find our compat readline/readline.h (emulating readline 2.x)
that conflicts with the readline 5.x includes.

Makes README.mknative instructions actually work instead of failing
midway b/c of conflicting tilde_expand() prototypes.


Revision tags: abandoned-netbsd-4-base
# 1.5 21-Jul-2006 lukem

Configure using --with-separate-debug-dir=/usr/libdata/debug.
(The various MACHINE-specific configurations will need to be regenerated.)


# 1.4 02-Jul-2006 nathanw

Explicitly pass "--prefix=/usr" to configure so that DEBUGDIR and
LOCALEDIR point into /usr rather than /usr/local.


# 1.3 30-May-2006 nathanw

Support .native in an objdir, so I can keep more than one around at a
time.


# 1.2 29-May-2006 nathanw

Support for mknative machinery.


Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-3-base netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.1 26-Oct-2003 cl

add gdb53 as a host tool for use as a crossgdb
replaces gdb50 from toolchain on archs which use gcc3


# 1.31 01-Jul-2017 jmcneill

--disable-nls does not work in gdb subdir, so add am_cv_func_iconv=no to
configure env. Fixes build on FreeBSD.


Revision tags: netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.30 16-Oct-2016 mrg

pass GDB_MACHINE_ARCH to mknative-gdb and use that as the subdir.
obtain GDB_MACHINE_ARCH from the new gdb Makefile.gdb_arch.


# 1.29 14-Oct-2016 christos

Fix the host build of aarch64 with clang


# 1.28 12-Oct-2016 christos

Define __STDC_{LIMIT,CONSTANT,FORMAT}_MACROS in CXXFLAGS.
The problem is that the gnulib interception of <stdint.h> and <inttypes.h>
does not really work because we implement those internally with
<sys/inttypes.h> and <sys/stdint.h> and those internal headers are used
by other internal headers *before* they get a chance to be intercepted
(where the __STDC_ macros are defined).

Another way to fix this is to move the inclusion of the other headers
in <stdint.h> and <inttypes.h> outside multiple inclusion protection.


Revision tags: localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.27 26-Jan-2016 christos

branches: 1.27.2;
use EXTERNAL_GDB_SUBDIR


# 1.26 17-Sep-2015 skrll

gdb.old is no more.


# 1.25 16-Aug-2015 christos

add double quotes for consistency


# 1.24 16-Aug-2015 christos

handle gdb-7.9.1


# 1.23 15-Aug-2015 mrg

for now, use gdb.old.


Revision tags: netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6 tls-maxphys-base
# 1.22 01-Oct-2012 bouyer

At last on some linux distros, gmake is needed to build the cross-gdb.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-0-5-RELEASE netbsd-6-0-4-RELEASE netbsd-6-0-3-RELEASE netbsd-6-0-2-RELEASE netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.21 09-Feb-2012 skrll

branches: 1.21.2; 1.21.4; 1.21.6;
Disable the sim on mips for next person running gdb7 mknative.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.20 26-Sep-2011 christos

branches: 1.20.2;
remove pre-gcc-4.5 mknative remnants that have long ceased to function.


# 1.19 26-Sep-2011 christos

mknative for gdb7


Revision tags: cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
# 1.18 24-Dec-2010 njoly

Adjust LDFLAGS handling to fix curses detection for mknative-gdb.


# 1.17 08-May-2010 hans

Fix tools build on Solaris with MKCROSSGDB=YES.


# 1.16 23-Dec-2009 mrg

revert the previous; not intended to be part of that commit, or any commit


# 1.15 23-Dec-2009 mrg

rework the main SUBDIR list here as suggested by enami. put .WAIT on
the same line as the target that needs to wait, but before the target,
rather than on the previous line, which led to confusion and an error
being introduced in the previous change.


# 1.14 15-Dec-2009 uebayasi

Fix parallel build. Analyzed & patch provided by enami@, thanks!


# 1.13 14-Dec-2009 christos

disable only parallel make.


# 1.12 14-Dec-2009 uebayasi

Disable parallel build, which always fails at compiling itable.c / interp.c.
Only affect MKCROSSGDB=yes.


Revision tags: matt-premerge-20091211 jym-xensuspend-nbase jym-xensuspend-base
# 1.11 05-Dec-2008 mrg

MACHINE_CPU is "mips" not "xxmips".


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 mjf-devfs2-base wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-baseX yamt-pf42-base2 wrstuden-revivesa-base yamt-pf42-base keiichi-mipv6-nbase keiichi-mipv6-base matt-armv6-nbase matt-armv6-prevmlocking cube-autoconf-base matt-armv6-base matt-mips64-base hpcarm-cleanup-base
# 1.10 19-Feb-2007 chs

disable sim for mips until someone adds the rest of the build framework for it.


Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 wrstuden-fixsa-base netbsd-4-base
# 1.9 25-Nov-2006 skrll

branches: 1.9.2; 1.9.4;
Fix the logic for --disable-sym. Hi uwe!

Use CPPFLAG_ISYSTEM.


# 1.8 24-Nov-2006 uwe

Disable sim for mknative unless it's known to work (configure's
default is to enable sim if there's support for the cpu).

The current list of "known to work" contains arches with G_SIM_OBS
already set: powerpc, powerpc64 and mips.

There's arm support in sim, but committed configs for arm do not have
G_SIM_OBS set, so I'm not enabling it here.

There's SH support in sim, but it fails to build out of the box, and
since we didn't build SH sim support for gdb 5.3, we keep it disabled.

Other arches shouldn't be affected, as there's no support for them in sim.


# 1.7 24-Nov-2006 uwe

Pass preset configure "cache" vars in the environment not only to the
top-level configure, but to ${MAKE} configure-host as well.

Add more vars (for readline mostly) so that there's no configure
warnings about tests skipped b/c of cross-compilation.


# 1.6 23-Nov-2006 uwe

Use -isystem to add ${DESTDIR}/usr/include to the search path.

gdb comes with its own copy of GNU readline 5.x, but
-I${DESTDIR}/usr/include stuffed at the beginning of the command line
makes it find our compat readline/readline.h (emulating readline 2.x)
that conflicts with the readline 5.x includes.

Makes README.mknative instructions actually work instead of failing
midway b/c of conflicting tilde_expand() prototypes.


Revision tags: abandoned-netbsd-4-base
# 1.5 21-Jul-2006 lukem

Configure using --with-separate-debug-dir=/usr/libdata/debug.
(The various MACHINE-specific configurations will need to be regenerated.)


# 1.4 02-Jul-2006 nathanw

Explicitly pass "--prefix=/usr" to configure so that DEBUGDIR and
LOCALEDIR point into /usr rather than /usr/local.


# 1.3 30-May-2006 nathanw

Support .native in an objdir, so I can keep more than one around at a
time.


# 1.2 29-May-2006 nathanw

Support for mknative machinery.


Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-3-base netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.1 26-Oct-2003 cl

add gdb53 as a host tool for use as a crossgdb
replaces gdb50 from toolchain on archs which use gcc3


Revision tags: pgoyette-localcount-20161104
# 1.30 16-Oct-2016 mrg

pass GDB_MACHINE_ARCH to mknative-gdb and use that as the subdir.
obtain GDB_MACHINE_ARCH from the new gdb Makefile.gdb_arch.


# 1.29 14-Oct-2016 christos

Fix the host build of aarch64 with clang


# 1.28 12-Oct-2016 christos

Define __STDC_{LIMIT,CONSTANT,FORMAT}_MACROS in CXXFLAGS.
The problem is that the gnulib interception of <stdint.h> and <inttypes.h>
does not really work because we implement those internally with
<sys/inttypes.h> and <sys/stdint.h> and those internal headers are used
by other internal headers *before* they get a chance to be intercepted
(where the __STDC_ macros are defined).

Another way to fix this is to move the inclusion of the other headers
in <stdint.h> and <inttypes.h> outside multiple inclusion protection.


Revision tags: localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.27 26-Jan-2016 christos

branches: 1.27.2;
use EXTERNAL_GDB_SUBDIR


# 1.26 17-Sep-2015 skrll

gdb.old is no more.


# 1.25 16-Aug-2015 christos

add double quotes for consistency


# 1.24 16-Aug-2015 christos

handle gdb-7.9.1


# 1.23 15-Aug-2015 mrg

for now, use gdb.old.


Revision tags: netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6 tls-maxphys-base
# 1.22 01-Oct-2012 bouyer

At last on some linux distros, gmake is needed to build the cross-gdb.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-0-5-RELEASE netbsd-6-0-4-RELEASE netbsd-6-0-3-RELEASE netbsd-6-0-2-RELEASE netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.21 09-Feb-2012 skrll

branches: 1.21.2; 1.21.4; 1.21.6;
Disable the sim on mips for next person running gdb7 mknative.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.20 26-Sep-2011 christos

branches: 1.20.2;
remove pre-gcc-4.5 mknative remnants that have long ceased to function.


# 1.19 26-Sep-2011 christos

mknative for gdb7


Revision tags: cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
# 1.18 24-Dec-2010 njoly

Adjust LDFLAGS handling to fix curses detection for mknative-gdb.


# 1.17 08-May-2010 hans

Fix tools build on Solaris with MKCROSSGDB=YES.


# 1.16 23-Dec-2009 mrg

revert the previous; not intended to be part of that commit, or any commit


# 1.15 23-Dec-2009 mrg

rework the main SUBDIR list here as suggested by enami. put .WAIT on
the same line as the target that needs to wait, but before the target,
rather than on the previous line, which led to confusion and an error
being introduced in the previous change.


# 1.14 15-Dec-2009 uebayasi

Fix parallel build. Analyzed & patch provided by enami@, thanks!


# 1.13 14-Dec-2009 christos

disable only parallel make.


# 1.12 14-Dec-2009 uebayasi

Disable parallel build, which always fails at compiling itable.c / interp.c.
Only affect MKCROSSGDB=yes.


Revision tags: matt-premerge-20091211 jym-xensuspend-nbase jym-xensuspend-base
# 1.11 05-Dec-2008 mrg

MACHINE_CPU is "mips" not "xxmips".


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 mjf-devfs2-base wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-baseX yamt-pf42-base2 wrstuden-revivesa-base yamt-pf42-base keiichi-mipv6-nbase keiichi-mipv6-base matt-armv6-nbase matt-armv6-prevmlocking cube-autoconf-base matt-armv6-base matt-mips64-base hpcarm-cleanup-base
# 1.10 19-Feb-2007 chs

disable sim for mips until someone adds the rest of the build framework for it.


Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 wrstuden-fixsa-base netbsd-4-base
# 1.9 25-Nov-2006 skrll

branches: 1.9.2; 1.9.4;
Fix the logic for --disable-sym. Hi uwe!

Use CPPFLAG_ISYSTEM.


# 1.8 24-Nov-2006 uwe

Disable sim for mknative unless it's known to work (configure's
default is to enable sim if there's support for the cpu).

The current list of "known to work" contains arches with G_SIM_OBS
already set: powerpc, powerpc64 and mips.

There's arm support in sim, but committed configs for arm do not have
G_SIM_OBS set, so I'm not enabling it here.

There's SH support in sim, but it fails to build out of the box, and
since we didn't build SH sim support for gdb 5.3, we keep it disabled.

Other arches shouldn't be affected, as there's no support for them in sim.


# 1.7 24-Nov-2006 uwe

Pass preset configure "cache" vars in the environment not only to the
top-level configure, but to ${MAKE} configure-host as well.

Add more vars (for readline mostly) so that there's no configure
warnings about tests skipped b/c of cross-compilation.


# 1.6 23-Nov-2006 uwe

Use -isystem to add ${DESTDIR}/usr/include to the search path.

gdb comes with its own copy of GNU readline 5.x, but
-I${DESTDIR}/usr/include stuffed at the beginning of the command line
makes it find our compat readline/readline.h (emulating readline 2.x)
that conflicts with the readline 5.x includes.

Makes README.mknative instructions actually work instead of failing
midway b/c of conflicting tilde_expand() prototypes.


Revision tags: abandoned-netbsd-4-base
# 1.5 21-Jul-2006 lukem

Configure using --with-separate-debug-dir=/usr/libdata/debug.
(The various MACHINE-specific configurations will need to be regenerated.)


# 1.4 02-Jul-2006 nathanw

Explicitly pass "--prefix=/usr" to configure so that DEBUGDIR and
LOCALEDIR point into /usr rather than /usr/local.


# 1.3 30-May-2006 nathanw

Support .native in an objdir, so I can keep more than one around at a
time.


# 1.2 29-May-2006 nathanw

Support for mknative machinery.


Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-3-base netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.1 26-Oct-2003 cl

add gdb53 as a host tool for use as a crossgdb
replaces gdb50 from toolchain on archs which use gcc3