Commit Graph

590 Commits

Author SHA1 Message Date
matt a2194c542b Remove non-shared hooks for VAX. 2007-03-31 05:55:43 +00:00
skrll 25a1cb4e5b G/C some HAVE_GCC == 3 stuff 2007-03-16 08:01:05 +00:00
chs 13bb388148 disable sim for mips until someone adds the rest of the build framework for it. 2007-02-19 18:26:22 +00:00
cbiere d5ed210dc4 Use '-o' instead of '-or' for find, the latter is a non-portable extension.
Reported by Raymond Meyer.
2007-02-07 17:49:23 +00:00
apb f7004b0cbc Whenever we try to parse the output from make, run make with the -B
flag.  This ensures that -j<N> isn't accidentally inherited from the
environment, because the "--- foo ---" headers printed with -j<N> would
interfere with parsing the output.
2007-02-05 18:26:01 +00:00
dogcow 38bd59d0b4 paxctl got moved to usr.sbin, it seems. 2007-01-30 23:47:37 +00:00
dogcow 4af19d6ae8 Back out this addition; it's The Wrong Thing when other system headers get
included.
2007-01-28 10:10:16 +00:00
dogcow f7c54e5b52 Due to recent changes in the cd9660 code, crosscompilation of tools/makefs
now fails due to the use of [be]e{16,32}dec. Add a compat header, and force
the inclusion of <sys/endian.h>.
2007-01-28 09:19:33 +00:00
apb c4aece6e61 Pass TOOL_JOIN, TOOL_MKTEMP, NM, and TOOL_SED through to the
tools version of lorder.  Also remove the hack of treating
Darwin differently, because the new TOOL_JOIN should solve that
problem.
2007-01-14 16:32:23 +00:00
apb 082025241e Build join(1) as a host tool. 2007-01-14 16:17:29 +00:00
ginsbach 0772ea91f4 Fix unbalanced sed expression -- add missing '('. 2007-01-11 15:10:08 +00:00
ginsbach dc7b6798f1 Don't invoke join(1) with POSIX syntax on MacOS X 10.3.9. This fixes
cross-building on the aforementioned platform.
2007-01-09 17:49:56 +00:00
ginsbach 37ee0e11e5 Fix tools build, binstall/xinstall, for systems without id_t, e.g.
MacOS X 10.3.9.  This should better match the NetBSD definition of id_t
in sys/sys/types.h.
2007-01-09 17:34:27 +00:00
agc 06c3bf82f1 Fixes to allow veriexecgen to be built as a host tool. 2006-12-20 22:03:20 +00:00
agc d05a6603f6 A commit too far - don't try to build veriexecgen for just now 2006-12-20 08:22:41 +00:00
agc b1a085da3c Build veriexecgen as a host tool 2006-12-19 21:23:18 +00:00
he 0a97c3f688 Complete the move of string_to_flags() and flags_to_string() from the
bin/ls sources to libutil:
 o Bump libutil minor version number
 o Fix uses to include <util.h> to pick up the function definitions
 o Fix most uses of flags_to_string() to release the now-malloc()ed result
2006-12-14 20:09:35 +00:00
dyoung f3fbc3bb0f Change the name of the host disklabel to nbdisklabel-${MAKEWRAPPERMACHINE},
where ${MAKEWRAPPERMACHINE} is the suffix XXX on the target's make
wrapper, nbmake-XXX.

Fixes toolchain/30673, "single arch host disklabel isn't enough".
2006-12-09 20:13:13 +00:00
freza 62e91a7ad9 There's no need to install machine/reloc.h with powerpc/include/elf_machdep:1.7
OK by <riz>
2006-11-25 18:59:35 +00:00
skrll c27514b676 Fix the logic for --disable-sym. Hi uwe!
Use CPPFLAG_ISYSTEM.
2006-11-25 16:06:04 +00:00
riz 0ed9b3e5ea add reloc.h to the list - missed this in the last commit. 2006-11-25 07:38:44 +00:00
uwe 964935dc72 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.
2006-11-24 02:09:01 +00:00
uwe 65e0d788c7 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.
2006-11-24 01:48:57 +00:00
uwe 4e48d71604 Note that nbmake-MACHINE native-gdb writes files under src, so this
step needs to be done in a writable src tree.
2006-11-23 23:33:56 +00:00
uwe f8e9ad465b Wrap overlong line to fit. 2006-11-23 23:31:00 +00:00
uwe 2770a4453e 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.
2006-11-23 22:41:10 +00:00
riz 2adcd99325 Add the nbinclude directory to the include path, so that
<hppa/elf_machdep.h> (and possibly others) can be found.
2006-11-22 18:37:38 +00:00
riz 2f0a27492f Make sys/exec_elf.h and machine/elf_machdep.h available to host
tools, and allow paxctl to use them when compiled as a host
tool.  This fixes the build on MacOS X (and perhaps other platforms)
2006-11-22 15:08:47 +00:00
dsl 7e3a0208c4 Add some notes about the bogosity of some of the .WAIT stuff.
Remove a 'never had a sane effect' .WAIT from a .ORDER line.
Don't add a (probably incorrect) dependency for 'make install' since
it contradicts a .ORDER line elsewhere when .ORDER applies recursively
to child nodes.
I also think that the stuff that tries to add dependencies between
the stuff that bsd.subdir.mk generates does not DTRT at all.
I suspect that build.sh builds things in an order that avoids issues here.
2006-11-17 21:54:55 +00:00
christos 2354d57484 Add paxctl as a tool. 2006-11-10 16:50:10 +00:00
dogcow 9070e87821 ...and one more for xcompilation (due to lib/libc/hash/sha1/sha1hl.c, sigh.) 2006-10-29 06:56:01 +00:00
dogcow 2b33ff3b97 cross (and native) building works again. woo. 2006-10-29 06:17:08 +00:00
uwe 06ddf90514 CONFIGURE_ARGS+=--disable-nls so that tools/gmake doesn't accidentally
pick up tools/gettext that is built when MKMAINTAINERTOOLS=yes

As gettext is built after gmake - this only happens if you either do
an update build and tools/gmake gets rebuilt, or if you use the same
TOOLDIR for several ports.
2006-10-27 22:36:23 +00:00
mrg 3e7961407f make sure we can find <sys/{rmd160,sha2}.h>. make sure the crypto/foo.h
versions of these include something that exists...
2006-10-27 22:32:45 +00:00
mrg af62440127 add ${.CURDIR}/../../common/lib/libc/hash/{rmd160,sha2} to the .PATH
so that these sources are found after this code moved.

(hi christos!)
2006-10-27 22:25:26 +00:00
mrg 3bb37666dd s/gcc3/gcc4/. 2006-10-19 08:18:45 +00:00
christos 9b803358d7 PR/34848: Roland Illig: NetBSD's sed cannot handle files that are missing
the final new line.
This is an fgetln() problem; fix and add a way to test.
2006-10-18 15:17:38 +00:00
apb a1d21442a0 Wrap #ifndef __BIT_TYPES_DEFINED__ around #define __BIT_TYPES_DEFINED__.
Reported by Narayana Prasad.
2006-10-16 19:44:23 +00:00
christos c3c402ca3b kill __unused 2006-10-12 16:19:06 +00:00
apb 71ba9763cb Configure the bootstrap make in such a way that it can use a shell other
than "sh" for executing commands.  Useful in a cross-build environment.

* Do not define _PATH_BSHELL, because it is no longer used by make.

* In addition to _PATH_DEFSHELLDIR (the directory in which the default
  shell can be found), define _BASENAME_DEFSHELL (the shell's basename).

* Use shell builtin string manipulation instead of sed to extract
  the directory name and basename from $BSHELL.

OK sjg, christos
2006-10-09 20:51:05 +00:00
christos 5883c53809 regen. 2006-10-09 14:59:41 +00:00
christos 9c3c382c56 sideways check for error functions. 2006-10-09 14:59:05 +00:00
apb 50ef6180ea If PREVIOUSTOOLDIR was empty, then don't complain that it has moved.
Patch from Jukka Salmi in PR 33095.
2006-10-08 15:21:00 +00:00
thorpej b3971ecdf5 Put common/lib/libc/stdlib into .PATH. From Hisashi T Fujinaka. 2006-10-08 04:31:55 +00:00
apb 26bf5ec9ea Add definitions for strmode. This was missing from the
patch in PR 31232.
2006-10-07 22:00:22 +00:00
apb ff5cff67a1 regen 2006-10-07 19:19:14 +00:00
elad 09256aac55 PR/31232: Wim Lewis: tools/compat doesn't check for pre-existence of
strmode()

Commited slightly different diff, input and okay from apb@
2006-10-07 16:19:35 +00:00
apb 01948befcb Use ${HOST_SH} instead of the host system's /bin/sh wherever possible:
* _PATH_BSHELL from the host's <paths.h> might be broken, so override it
  with our PATH_BSHELL, which is derived from HOST_SH.
2006-09-29 20:00:15 +00:00
dbj f3b496ec9b implement HOST_CPPFLAGS+= -DNO_BASE64
this fixes cross compiling
2006-09-24 21:43:14 +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