Commit Graph

38 Commits

Author SHA1 Message Date
rin 6673897143 tools/binutils: Add support to mknative for binutils.old 2023-11-25 12:11:27 +00:00
christos 342a25befd Disable enabling executable stack when the gnu stack note is missing.
Merge common configure arguments.
2023-01-18 12:52:55 +00:00
mrg 41d5ee3235 fix the binutils build with read-only source trees
don't play with m68k-parse.c in tools/binutils/Makefile but disable
the rules that rebuild it so we always use the upstream version,
using the standard "NetBSD_DISABLED" method.

this was necessary to build on linux in 2014 (which may or may not
still ne necessary), but it also avoids triggering rebuild rules
based upon the timestamps on .y vs .c.

tested with amiga, amd64, and i386 "build.sh tools" builds.
2022-12-31 05:44:25 +00:00
christos 8b0a0c21a2 Handle both places where m68k-parse can be found (for 2.34 and 2.39) 2022-12-25 17:25:22 +00:00
christos 7aa193d2ef Adjust for binutils-2.39 2022-12-24 20:17:46 +00:00
christos a043955316 Patch the build script and toolchain to allow passing through
HOST_CPPFLAGS, HOST_CXXFLAGS, but not LIBRARY_PATH because it breaks
the build. These variables are necessary to support building NetBSD
from a GNU Guix or NixOS host, where /usr/include, /lib, and all
but /bin/sh do not exist.  In many cases, support for HOST_CPPFLAGS
was incomplete. From Ryan Sundberg
2021-09-18 01:47:07 +00:00
christos 6bf278a2a9 enable initfini-array since all platforms support it. 2021-05-07 23:00:04 +00:00
christos a0fb52ee6d put the binutils include before /usr/include to get the right md5.h 2020-04-04 00:47:30 +00:00
christos dc83bc10dc explicitly disable initfini-array; we don't have it yet. 2018-12-27 16:26:52 +00:00
christos 21c73e0dad Adjust for 2.31.1 2018-11-07 01:14:19 +00:00
christos bf7113376a 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
2018-05-01 19:59:42 +00:00
christos b2a8932dbe 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
2018-05-01 00:04:34 +00:00
mrg 203d3087cb pass -L in LDFLAGS. clang complains about it to stderr, and configure
checks for headers fail if there are unexpected stderr.
2016-10-11 03:57:00 +00:00
christos 22253bc332 use EXTERNAL_BINUTILS_SUBDIR 2016-01-26 17:47:35 +00:00
tsutsui 11b13dddf7 No need to specify ${.OBJDIR} for target files.
It rather fails if MKHOSTOBJ=yes.
2014-02-15 13:34:28 +00:00
joerg 1df17bf6cf For the tools build, always use the Bison-created m68 asm parser.
Fixes build on Linux, where the glibc guards trip up the
"must-be-included-first" check in config.h.
2014-01-29 23:35:13 +00:00
mrg 9ac63422b6 force set ac_cv_mkdir_path to our install -d program.
fixes the remaining issues with 'sourcesets' and 'tools'.
2012-04-15 08:37:32 +00:00
mrg c23dc553e9 obsolete now useless (and wrongly set to "219" :-) HAVE_BINUTILS.
switch the sense of the gdb and gcc tests to list the platforms not
switched to gcc 4.5 or gdb 7, which is now:

GCC 4.1:
.if ${MACHINE_ARCH} == "alpha"	|| \
    ${MACHINE_CPU}  == "arm"	|| \
    ${MACHINE_CPU}  == "m68k"	|| \
    ${MACHINE_CPU}  == "vax"

GDB 6:
.if ${MACHINE_ARCH} == "alpha"	|| \
    ${MACHINE_ARCH} == "hppa"	|| \
    ${MACHINE_CPU}  == "mips"	|| \
    ${MACHINE_CPU}  == "sh3"	|| \
    ${MACHINE_ARCH} == "vax"

let's go, people!  (-:
2011-10-31 08:14:43 +00:00
mrg b9477da802 add --disable-werror. GCC 4.6 doesn't like some of the code here and
rather than patching code to fix it (and one case isn't trivially fixable)
simply turn off -Werror by default here.  should fix PR#45140.
2011-08-04 02:38:41 +00:00
joerg 333ceea9fc Enable support for --sysroot in binutils and gcc. 2011-03-24 13:33:42 +00:00
skrll af515df4eb Pull in fixes from binutils_2_19 branch.
Bump version and re-run mknative to pick up.
2009-11-20 22:51:29 +00:00
skrll df133fffea Only brand newer binutils. 2009-10-14 07:30:47 +00:00
skrll 699c28bc09 Better branding from mrg 2009-10-12 08:00:41 +00:00
snj 823426b32c Adjust bug report URL to reflect htdocs changes. 2009-10-10 14:46:02 +00:00
skrll f92d679b89 Add some NetBSD branding to binutils. 2009-10-10 10:21:22 +00:00
skrll 6d622a3f1b Build binutils 2.19.1 if HAVE_BINUTILS is 219 2009-08-18 15:08:51 +00:00
uebayasi 0f2ad14fc7 target:
cmd1 && cmd2 && cmd3

|	|	|
v	v	v

target:
	cmd1
	cmd2
	cmd3

This makes the script (cmd1 && cmd2 && cmd3) slightly easier to debug.  No
functional change expected.
2007-11-19 05:54:03 +00:00
simonb a6a46a588a Allow for building a crosstools version of gprof.
Disabled by default, can be enabled with MKCROSSGPROF=yes.
2006-08-27 07:04:00 +00:00
skrll 1516e62216 Adapt native-binutils to new binutils. 2006-02-02 22:03:54 +00:00
skrll c88f165c85 Revert previous.
We need to fix vax a different way as the move of -B${DESTDIR}/usr/lib/
to CFLAGS filters into the defs.mk files.
2005-01-14 07:46:56 +00:00
mrg 8887f2b7c4 for mknative, move -B from CC to CFLAGS, fixes vax configs 2004-12-12 12:42:35 +00:00
mrg 952c497306 move libaries back to gnu/lib 2003-12-04 14:38:00 +00:00
mrg ce29aa2370 build lib{opcodes,bfd,iberty} back in gnu/lib instead of gnu/usr.bin/binutils
as they are needed earlier than when gnu/usr.bin/binutils is built when
"make -j" is used.
2003-12-04 09:29:31 +00:00
mrg b538519c6c fix a bug in previous:
don't pass -L${DESTDIR}/usr/lib twice, pass it once with -L${DESTDIR}/lib.
2003-12-01 09:37:09 +00:00
mrg 0fcc88b5a2 all `tooldir/nbmake-$ARCH native-binutils' support, to regenerate binutils
configury files for the integrated toolchain.
2003-11-27 10:12:02 +00:00
lukem f85d2d1c14 Use ${HOST_SH} instead of `sh'.
If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.
2003-10-26 07:25:33 +00:00
cl 98f3b47a3f add gdb53 as a host tool for use as a crossgdb
replaces gdb50 from toolchain on archs which use gcc3
2003-10-26 01:06:27 +00:00
mrg 6c17918185 - build "binutils" and "gcc" separately if USE_TOOLS_TOOLCHAIN is not set
to "yes".
- adjust dbsym/mdsetimage to look in the correct place for libbfd.
- new mknative-gcc based in toolchain/mknative
2003-07-25 16:26:51 +00:00