tls
918f0e5e02
Try to address mess with user_from_uid and friends by ensuring we always
...
get our versions if any of the functions aren't present on the host system.
Still assumes if the functions are all there, they work like ours, which
may be a problem too.
2007-10-30 20:23:35 +00:00
christos
93c52e3c71
I am now convinced of the error of my ways, and I am checking for all the
...
decls mtree is using.
2007-10-19 15:56:53 +00:00
christos
e8cbe68183
Move linux block up higher as it was before. noted by apb
2007-10-18 16:04:24 +00:00
christos
a3b8c83a7e
- define the NetBSD options before including any files
...
- add the _NETBSD_TOOLS define to make more symbols visible
- user_from_uid and group_from_gid are renamed only if we don't have them
2007-10-18 02:27:10 +00:00
garbled
cbaea9726c
regen for pmppc removal
2007-10-17 23:31:07 +00:00
apb
810a68fb1a
regen
2007-10-14 20:27:22 +00:00
apb
7f785f3945
Adapt to the changed way of telling make which shell to use.
2007-10-14 20:26:47 +00:00
apb
4d49fce1d6
* Add Makefile.regen to regenerate configure from configure.ac;
...
* Add comments in configure.ac to explain how to regenerate configure.
2007-10-14 20:25:35 +00:00
lukem
9b5022a3a6
add raise_default_signal
2007-09-28 09:12:49 +00:00
lukem
339d6e2876
regen for raise_default_signal
2007-09-28 09:12:19 +00:00
lukem
5f778f6e61
Add raise_default_signal().
2007-09-28 09:11:11 +00:00
drochner
109044809a
Force use of __cxa_atexit by a configure command line argument
...
(for booth the tool build and mknative). gcc's "config.gcc" sets
it if the target is netbsd[2-9], but since the target is w/o version
number in our builds, it has no effect. Found by Nick Hudson,
patch approved by mrg.
2007-09-20 12:26:51 +00:00
yamt
7253d0ec03
use a pre-generated list of files instead of running find(1) again and again.
...
PR/34551.
2007-08-07 12:44:39 +00:00
yamt
1912a2fa9c
add a file generated by mkheaderlist.sh.
2007-08-07 12:43:02 +00:00
yamt
f4069de4f3
a script to generate a list of headers for Makefile.disklabel.
2007-08-07 12:38:23 +00:00
apb
46427a7162
Regen after recent changes to configure.ac and compat_defs.h.
...
(Most of the changes seem to result from somebody having used
non-tools versions of autoconf and autoheader in the past.)
2007-08-07 08:29:15 +00:00
apb
a7b292d021
Update the instructions to say that regen should be done again
...
to pick up changed RCS IDs.
2007-08-07 08:27:41 +00:00
apb
0da2db6cd1
Provide definitions for {be,le}{16,32,64}{enc,dec} if necessary.
...
This is adapted from the very detailed fix provided by
Giles Lean in PR bin/36678.
Only one simplified implementation is provided, instead of the
two implementations conditional on __GNUC_PREREQ__(2,95) that are
provided in NetBSD's <sys/endian.h>. The use of memcpy instead of
__builtin__memcpy, and the absence of __inline or __unused, should make
it independent of GCC.
2007-08-07 08:22:04 +00:00
apb
581beaff5e
More detailed instructions for what to do when editing configure.ac.
...
In particular, discourage the use of non-tools versions of
autoconf and autoheader.
2007-08-07 07:47:50 +00:00
jmmv
ecd360e001
sys/queue.h now requires sys/null.h, so add a compatibility header file.
...
Fixes build of tools under, e.g. Mac OS X.
2007-07-19 13:49:12 +00:00
jmmv
899297d564
Treat -cxx-isystem as -isystem-cxx. Not really required by our code, but
...
I discovered this while trying to add a host tool written in C++.
2007-07-09 15:27:10 +00:00
joerg
dbfc63fcce
Rename nbinstall to ${MACHINE_GNU_PLATFORM}-install as it calls the
...
target strip. Don't pass down strip as it is not needed any longer.
2007-07-03 16:29:24 +00:00
nakayama
0c74dffd74
Add strndup(3) to libnbcompat, since estrndup(3) added into efun.c calls it.
2007-07-03 12:11:09 +00:00
joerg
12929bba43
- When compiling nbinstall for the tool chain, use the target strip
...
and not /usr/bin/strip. This makes nbinstall usable for
cross-compiling in pkgsrc.
- Fix a typo in a comment.
- Fix strip() in the context of (v)fork:
- Build the argument string first using asprintf (simpler) and
avoid leaking memory from the child in the parent.
- Don't use warn in the child, as stdio should be avoided.
OK christos@, tested on Solaris by dmcmahill@.
2007-06-28 19:05:55 +00:00
he
678b5429b3
Instead of inventing a new environment variable to override the
...
SSP functionality location test, use gcc_cv_libc_provides_ssp instead,
as hinted by freza@ and uwe@.
2007-06-07 14:36:27 +00:00
he
bd8f620dfb
Modify the gcc configure script to allow override of the "target libc
...
has ssp functions built-in" test via the TARGET_LIBC_PROVIDES_SSP environment
variable, to allow us to configure a cross-compiler appropriately without
having to try to find out by looking in the target's source directory.
Tweak our build to tell gcc that the ssp bits are now in libc.
The native compiler appears to already think that the ssp bits
live in libc, so no change appears to be needed there.
The autoconf-generated configure script will be committed separately shortly.
2007-06-07 08:58:58 +00:00
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
christos
3f4976a941
undo previous. I'll do it differently.
2006-08-26 22:17:48 +00:00
christos
d81e58017f
compile efun.c too.
2006-08-26 22:15:14 +00:00
christos
c4db14231b
Some tools need efuns.
2006-08-26 18:26:14 +00:00
christos
f38f9fbc4a
Remove advertising clause.
2006-08-26 16:24:29 +00:00
mrg
8274a24af8
point out the GCC4 dirs not the GCC3 dirs.
2006-08-23 20:52:15 +00:00
mrg
467d749333
pass RAW_GCC_FOR_TARGET when running configure-target-libstdc++-v3.
...
now iconv and wchar_t things are properly set. still missing
_GLIBCXX_HAVE_S_IFREG and _GLIBCXX_USE_NLS.
2006-08-23 20:45:24 +00:00
thorpej
c1f7db8026
Also check for DIR.__dd_fd. tools/compat now builds on the WWDC developer
...
preview version of Mac OS X "Leopard".
2006-08-20 18:52:05 +00:00
freza
3d00583f2e
* Fix parallel build race condition between real{all,depend} and
...
<bsd.subdir.mk> targets.
* No need to pass TOOLDIR to recursive cleandir in real{all,depend}.
With help from he@.
OK by tron@.
2006-08-03 17:11:05 +00:00
tron
633d50b175
Another attempt to fix the race in parallel builds.
2006-08-03 09:55:56 +00:00
lukem
ba9c7c5b9e
Configure using --with-separate-debug-dir=/usr/libdata/debug.
...
(The various MACHINE-specific configurations will need to be regenerated.)
2006-07-21 11:23:02 +00:00
tron
09f6946261
Invoking "make cleandir" with "PREVIOUSTOOLDIR" set to the previous
...
location will not stop recursive "make cleandir" calls. Pass the new
location instead.
2006-07-19 09:54:47 +00:00
lukem
e728c9b011
gettext should .WAIT for autoconf.
...
(The former still doesn't seem to work on read-only source; separate issue)
2006-07-18 04:24:52 +00:00
tron
c1af61f813
Avoid getting into a loop of "make cleandir" instances if the location
...
tool directory has been changed or wasn't recorded before.
2006-07-17 13:54:46 +00:00
tron
fe4611e56b
Remove ".WAIT" again because it doesn't fix the problem.
2006-07-17 11:02:02 +00:00
tron
71ee259418
Add an extra ".WAIT" to the "realall realdepend" target to make sure
...
it finished cleaning the tools directory in case of tool directory
mismatch before we try to rebuild the tools.
2006-07-12 10:49:11 +00:00
nathanw
17a79dbc4b
Explicitly pass "--prefix=/usr" to configure so that DEBUGDIR and
...
LOCALEDIR point into /usr rather than /usr/local.
2006-07-02 22:15:14 +00:00
mrg
11762d9b99
force --disable-shared on vax so that GCC does not think it can use
...
shared libgcc.
2006-07-01 05:59:18 +00:00
ross
43efe1a030
Use _TOOL_PREFIX if present.
2006-06-30 19:47:46 +00:00
mrg
51763b5588
convert build/ggc-none.o to build-ggc-none.lo.
2006-06-25 03:06:15 +00:00
mrg
8700cb85b1
introduce a new CXXADDFLAGS and use it to pass CPPFLAG_ISYSTEMXX to
...
configure. also, clean up this a little more to make mknative-gcc
work on GCC3 again, while fixing some breakage in the last couple
of revisions.
2006-06-24 05:29:03 +00:00
mrg
212755b9af
also grab ${_extravars} for GCC4 in the get_gcc() function.
2006-06-24 05:26:50 +00:00
mrg
dbf21d98fa
only build lint and lint2 if MKLINT != "no".
2006-06-22 20:03:41 +00:00
gdamore
d9ac053afa
Make TOOL_SED, to allow using our own sed in cases where the host's version
...
is busted in some way.
The TOOL_SED doesn't use TIOCGWINSIZE, and has some changes to include
nbtool_config.h in a cross build environment.
Combined with some other changes (not yet committed), this allows cross
compiling m68k code on Solaris 10/amd64.
2006-06-18 05:16:41 +00:00
skrll
27d5fc1bd1
Fixes for mknative runs on gcc3.
...
- get the information from a gcc3 .native
- don't get gcc4 variables
- put back the getvars for SHLIB_LINK SHLIB_MULTILIB as they work
on gcc3 and leave as XXX'd on gcc4.
I've re-arranged some of the variables to minimise the differences, but
didn't do them all.
2006-06-09 15:30:52 +00:00
mrg
88e91184c2
delete GCC2 support.
2006-06-03 07:13:52 +00:00
mrg
db19e89e04
remove support for building (with) GCC 2.95. also:
...
- always install <stdbool.h>
- don't generate a fake one for vax / gettext.
2006-06-02 22:16:18 +00:00
mrg
e6744c2295
make this work for GCC3 one again.
2006-06-02 19:44:20 +00:00
nathanw
fd8e3777c1
Notes for how to do the mknative dance (based on the gcc one, but with
...
unnecessary steps removed).
2006-06-02 15:33:34 +00:00
nathanw
6c6d4376da
Support .native in an objdir, so I can keep more than one around at a
...
time.
2006-05-30 04:22:40 +00:00
nathanw
fc275ebacd
Support for mknative machinery.
2006-05-29 19:11:57 +00:00
nathanw
15577e8202
mknative script for gdb6. Largely cribbed from mknative-binutils.
2006-05-29 19:10:58 +00:00
mrg
cf8192ab0d
use the same "Generated from: " tag for mknative.common so that changes
...
that only affect rcsid's don't cause all generated files to change.
2006-05-26 19:17:21 +00:00
mrg
445a28d54e
also grab ALL_OPT_FILES from gcc/Makefile for libobjc4.
2006-05-23 10:55:55 +00:00
christos
471f50c864
Don't remove files that are needed for a build after make clean. Before
...
'make clean; make' failed in tools because necessary configure generated
files were removed. The failure manifested itself with string_to_flags
being undefined in binstall.
2006-05-20 00:23:39 +00:00
mrg
4e2cace64a
quote variables in the gmake version of getvars() so that stuff that
...
looks like (FOO|BAR) works.
2006-05-17 03:27:19 +00:00
mrg
5d136667c4
configure-libiberty is only good for GCC4.
...
move a comment next to it's code.
2006-05-17 03:26:37 +00:00
mrg
20a4734a0a
make sure that c++ headers work again.
2006-05-15 22:03:03 +00:00
mrg
9afa8c578c
also note the rcsid of mknative.common
2006-05-15 21:01:42 +00:00
mrg
243ae1c185
when generating path names also substitute the real path name as well as
...
the VPATH. now /usr/src doesn't end up in libstdc++-v3_4 defs.mk.
2006-05-15 20:57:45 +00:00
mrg
c08a446c31
set AR and RANLIB to the host versions in MAKE_ARGS - otherwise the
...
build of the "build-libiberty" fails due to these being set to "".
2006-05-12 18:01:13 +00:00
mrg
c80d901665
put MAKE_ARGS in the gmake command line.
2006-05-12 18:00:27 +00:00
mrg
642ce2be87
support GCC4:
...
- look in gnu/dist/gcc4
- don't build fortran
- use /usr/bin/env -i so that gmake works (XXX - breaks from MAKEFLAGS
in the build.sh generated makewrapper.)
- use gmake and Makefile.gmakehost
- update .native/.configure_done target
2006-05-12 02:12:37 +00:00
mrg
f9d28bd46c
- ensure $MAKE is set
...
- support $MAKE as gmake for getvars()
2006-05-12 02:07:59 +00:00
mrg
641014e847
initial wrapper for gmake-requiring tools. probably does not yet
...
work on all currently supported netbsd build hosts.
XXX current issues:
XXX - calls /usr/bin/env -i directly, mostly to wipe-out MAKEFLAGS
XXX from the environment (usually set by the buildwrapper to
XXX "-de -m <path-to>/share/mk"
2006-05-11 01:17:53 +00:00
mrg
843978ed3a
check HAVE_GCC == 4 not USE_GCC4.
2006-05-11 01:15:32 +00:00
christos
aa614dac23
Don't barf if USE_GCC4 is not defined.
2006-04-01 20:21:30 +00:00
jmc
67840cd950
Turn on gmake builds if GCC4 is enabled (and force it's install before continuing
2006-03-29 21:10:52 +00:00
jmc
c9e6fd9591
Add support for installing gmake as tools/bin/nbgmake
2006-03-29 21:10:26 +00:00
dogcow
79548d7aef
Twiddle configure/configure.ac to check/define/create machine/endian.h; this
...
should fix PR/32878. Tested on NetBSD-current, FreeBSD4, Solaris8.
2006-02-22 00:14:05 +00:00
tv
0eddda9bff
I haven't touched the mknative stuff since 2002. Take my name off of the
...
readmes, so I'm not implied as a point of contact.
2006-02-17 17:34:30 +00:00
dyoung
9151f942f8
Two changes to facilitate building tools on Darwin:
...
1. #undef d_fileno, which is set by Darwin's <dirent.h>,
and which clashes with d_fileno in NetBSD headers.
2. Install the sys/ufs/ header files in nbinclude/ in order
to override Darwin's own, incompatible header files.
2006-02-14 04:59:33 +00:00
dyoung
b3b0356bf5
For the i386 and amd64 cross-toolset, build fdisk with -DBOOTSEL,
...
for a more full-featured cross-tool.
2006-02-14 04:49:50 +00:00
wiz
9d363dc8b0
regen
2006-02-11 10:35:43 +00:00
wiz
dd7c0d224c
Redo previous differently: use AH_TOP and AH_BOTTOM macros to insert
...
header and footer into nbtool_config.h.in directly.
2006-02-11 10:35:29 +00:00
wiz
d65d538b21
regen
2006-02-11 01:28:17 +00:00
wiz
a21971be10
Make using autoheader easier:
...
split off the autogenerated file into nbtool_config_internal.h,
and let nbtool_config.h be a file with the proper wrappers.
This way you can just change configure.ac, run autoconf and autoheader,
verify the result, and commit, but don't have to edit nbtool_config*in
manually every time.
2006-02-11 01:28:01 +00:00
wiz
6d1f07f471
Define prototypes for strsuftoll and strsuftollx if the one for
...
strsuftoll was not found by configure. Second part of nbmakefs build
on 3.0.
2006-02-11 00:56:08 +00:00
wiz
4591238e8a
rerun autoheader (and re-add header and footer).
2006-02-11 00:55:17 +00:00
wiz
625ce9525f
regen.
2006-02-11 00:54:50 +00:00
wiz
dc5360a0d6
Add AC_CHECK_DECLS test for strsuftoll. hannken reports it is needed
...
for building nbmakefs on 3.0/i386.
2006-02-11 00:54:35 +00:00
wiz
90c00efe34
Adapt for bswap* changes in configure.ac.
2006-02-10 07:07:20 +00:00
wiz
264739a1aa
regen with autoheader; header and footer need to be added manually,
...
add a comment saying so.
2006-02-09 22:28:06 +00:00
wiz
1ec2d20625
regen.
2006-02-09 22:26:51 +00:00
wiz
6ad9de8b94
Use the AC_DEFINE version with three arguments consistently, since
...
then autoheader works too.
Replace the remaining abusers of AC_CHECK_FUNCS with AC_CHECK_DECLS
too.
2006-02-09 22:26:06 +00:00
dogcow
86811edb37
change #include <sys/endian.h> => #include <machine/endian.h> so that
...
it's (more) consistent in the tree; this, along with changing tools/compat's
autoconf detection from AC_CHECK_FUNCS to AC_CHECK_DECLS makes the vast
majority of htobe16 and friends' redefinition errors bite the dust.
Tested with -current and FreeBSD.
2006-02-09 22:03:15 +00:00
tron
df69ed2b70
Disable X11 support in toolchain "groff" build to stop it from trying
...
to install files to "/usr/X11R6". Patch supplied by Thomas Klausner on
current-users mailing list.
2006-02-06 23:48:35 +00:00
dsl
e94b2828f0
The realall and realdepend bit that regenerates tools needs to be marked
...
.MAKE otherwise the 'make' it runs has its own list of jobs instead of
using the jobserver of the enclosing make.
2006-02-03 22:07:57 +00:00
skrll
1516e62216
Adapt native-binutils to new binutils.
2006-02-02 22:03:54 +00:00
skrll
acdbc7bca2
Create MD libiberty files.
2006-02-02 20:06:04 +00:00
dbj
c03e27f52f
regen
2006-02-02 04:15:16 +00:00
dbj
a3ecf0b346
touch an empty sys/bswap.h if detected as missing by configure
...
this fixes cross compile problems from recent changes to
convert machine/bswap.h to sys/bswap.h
2006-02-02 04:15:03 +00:00
tsutsui
dc96fb0473
Add a tweak for ews4800mips/include/disklabel.h,
...
which includes some other md headers.
2005-12-29 15:35:19 +00:00
christos
7dfafee4b6
Search the new common framework.
2005-12-20 20:39:15 +00:00
martin
417e934595
We use gcc's crtstuff now - update this acordingly (thanks to
...
Nick Hudson for instructions)
2005-10-29 20:43:35 +00:00
jmc
70200ecd34
Fix previous commit. Broken logic
2005-10-04 04:56:19 +00:00
jmc
2ae0c61239
Make the tools using Makefile.disklabel wait so they don't stomp each other.
...
Also for now add a dependency to Makefile.disklabel so this doesn't run
3 times. (XXX this really should just be done differently)
2005-10-04 04:27:32 +00:00
elad
345a69e003
Move rmd160.h to crypto/ to keep in sync with recent changes.
...
Noted by xtraeme@.
2005-09-24 21:58:36 +00:00
elad
3fcecfe373
Sync with recent MD2 changes.
2005-09-24 20:52:22 +00:00
elad
efa664c42a
Sync with recent changes.
2005-09-24 19:06:20 +00:00
tron
41bb2c9889
Make cross compiling NetBSD under Linux work again. Problem noted by
...
R. Huvendiek on "current-users" mailing list.
2005-09-14 14:06:11 +00:00
christos
d69a9593f3
We don't need any ndbm sources.
2005-09-13 15:32:48 +00:00
christos
25f2b410ca
don't use the _foo.c files; all the code is in foo.c now.
2005-09-13 13:52:23 +00:00
christos
478e2d98de
compat reorg.
2005-09-13 02:30:23 +00:00
jwise
c21f37fb93
On second thought, we can't just pass through -isystem-cxx, we have to
...
change it to -isystem. With this change, I can now make depend a simple c++
stl-using host program.
2005-09-01 21:51:11 +00:00
jwise
97ec3a6bc9
Recognize -isystem-cxx as well as -isystem, making this more usable for c++
...
host progs.
2005-09-01 21:17:31 +00:00
uwe
b0e7a6ada3
UINT8_MAX and UINT16_MAX are needed for disklabel.
2005-08-27 22:08:58 +00:00
elad
8eac896be6
Pull in SHA2 routines from libc to nbcompat.
2005-08-26 15:59:00 +00:00
elad
994154b2ab
Add nbcompat SHA2 header.
2005-08-26 15:57:17 +00:00
elad
3879a20289
Tools can't use SHA2. Noted by Geoff Wing.
2005-08-26 03:19:14 +00:00
tron
ff5245dd05
Define "_PATH_VI" if necessary to make cross-building work again under
...
Solaris (and potentially other platforms) after "disklabel" has been
added to the hosts tools.
2005-08-22 15:27:11 +00:00
christos
c4ee9f6d2e
64 bit inode changes
2005-08-19 02:07:18 +00:00
he
0ec45ddeab
Fix the toolification of disklabel by using the nbinclude namespace
...
under HAVE_NBTOOL_CONFIG_H for disktab.h as well. This means
disktab.h has to be installed in the nbinclude include directory.
(Failure mode: with TOOLDIR as a subdirectory of /usr, the host's disktab.h
got picked up, and not the in-tree copy.)
Reviewed by dyoung.
2005-06-22 21:35:28 +00:00
dyoung
7f67833ef1
.include Makefile.disklabel in installboot, so that the
...
nbinclude/ header files will be installed. Build installboot after
pax, since Makefile.disklabel uses pax to install the headers.
2005-06-12 20:24:14 +00:00
dyoung
a37289db57
Make disklabel(8) and fdisk(8) into "host tools " last step: build
...
and install ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-disklabel,
${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-fdisk by "reaching over" to
the sources in ${NETBSDSRCDIR}/sbin/{disklabel fdisk}/.
To avoid clashes with a build-host's header files, especially on
*BSD, the host-tools versions of fdisk and disklabel search for
#includes such as disklabel.h, disklabel_acorn.h, disklabel_gpt.h,
and bootinfo.h in a new #includes namespace, nbinclude/. That is,
they #include <nbinclude/sys/disklabel.h>, <nbinclude/machine/disklabel.h>,
<nbinclude/sparc64/disklabel.h>, instead of <sys/disklabel.h> and
such. I have also updated the system headers to #include from
nbinclude/-space when HAVE_NBTOOL_CONFIG_H is #defined.
2005-06-12 19:46:15 +00:00
thorpej
5ecc953bdb
config and genassym are not sysadmin tools, they are development tools.
...
As such, they don't belong in /usr/sbin, but rather /usr/bin. Move them
there.
2005-06-05 18:19:52 +00:00
christos
b1d90df260
use the copy in /usr/src/usr.sbin/
2005-05-31 03:53:59 +00:00
thorpej
b1688b2767
Add a -f option to generate Forth code instead of a C header file.
...
Part of PR toolchain/30350.
2005-05-30 23:27:29 +00:00
thorpej
62294d00e3
Build genassym as a host tool. Part of PR toolchain/30350
2005-05-30 15:51:36 +00:00
skrll
810ebc3831
Use the correct LD/NM/OBJDUMP when creating the mknative environment.
2005-05-20 07:10:51 +00:00
christos
4de0ea44a5
Replace the original fgetln with a simpler one that:
...
1. Works if the last line does not end up in \n
2. Does not scan the string multiple times.
3. Does not copy the string, but writes it directly in the buffer.
4. Handles out of memory conditions gracefully.
2005-05-15 21:31:26 +00:00
skrll
990898b846
Use the correct AS when creating the mknative environment.
...
Reviewed by mrg@
mknative re-runs will appear soon.
2005-05-14 08:00:58 +00:00
chs
6fafa8c2a3
don't build a shared lib for the host-tool, it doesn't work on hp700
...
and isn't needed anyway.
2005-05-08 01:47:33 +00:00
jmc
2b4f5f9782
Update notes for testing on linux, OS/X
2005-04-05 00:21:22 +00:00
wiz
1dc296553a
Remove commas in AC_CHECK_FUNCS that shouldn't be there.
...
Closes PR 29577 by Valeriy E. Ushakov.
2005-03-02 18:08:43 +00:00
jmc
2fbd40c4e0
Put back @ on configure line. Was off for debugging and shouldn't have been
...
committed.
2005-02-11 15:11:08 +00:00
jmc
e392f6d248
Pass CC,CXX and a few other vars along to configure so file can find the c++
...
preprocessor (which of course it doesn't even use...)
2005-02-11 15:01:57 +00:00
jmc
07aeec53c1
Make a BUILD_ENV that by defaults matches CONFIGURE_ENV and pass it along on
...
the build step. Catches things like binutils which do a bunch of configures
on the build step and lose possibly. Fixes issues from PR#29197 for lex
not being picked up here.
2005-02-11 15:01:03 +00:00
jmc
0a58d4b08d
Define LOGIN_NAME_MAX explicitly here and override any system provided one
...
since the compat tools need to use the NetBSD limits, not the local system
ones (and some systems don't provide this yet anyways). Fixes PR#29170
2005-02-01 05:26:03 +00:00
is
d781105e1d
We don't need aout2bb any longer.
2005-01-27 12:54:05 +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
jmc
f7b3f12b97
Turns out some platforms (freebsd5) expose st_birthtime but not
...
st_birthtimensec. Make sure and check for both so programs can deal w. it
2005-01-13 00:52:40 +00:00
mycroft
963654140b
Add some quotes to prevent a syntax error.
2005-01-09 03:48:30 +00:00
mrg
8887f2b7c4
for mknative, move -B from CC to CFLAGS, fixes vax configs
2004-12-12 12:42:35 +00:00
jmc
427a8339c4
Provide a definition for __UNCONST since there's no guarentee our sys/cdefs.h
...
gets pulled in
2004-12-11 09:34:08 +00:00
jmc
4d724bafe7
Take output and look for things of the form ./XXX.o and turn them into XXX.o
...
so generated objects vs listed objects in make line up and dependcies happen
correctly. Found because libiberty (on this binutils import) was leaving
all objects as ./object.o and make wasn't picking up correct depends on
config.h as a result.
2004-12-11 07:40:50 +00:00
lukem
9741933ec5
minor (shell) KNF
2004-12-11 01:37:36 +00:00
mrg
ab78454ed7
mirror a fix from mknative-binutils:
...
>fix the sed expression that pulls VPATH out of the makefile to work
>with any number of tabs or spaces after the equal sign.
2004-12-10 13:58:11 +00:00
mrg
d99893c4fd
fix the sed expression that pulls VPATH out of the makefile to work
...
with any number of tabs or spaces after the equal sign.
2004-12-10 13:57:08 +00:00
jmc
9bfe9b9970
Convert mkboot into a full cross tool. Last hurdle for hp300 to building on
...
non NetBSD/bsd hosts.
2004-11-28 11:14:41 +00:00
jmc
c7464d49db
Convert remaining host tools for amiga to correct cross tools. Now allows
...
complete amiga builds on non netbsd/bsd hosts
2004-11-28 07:00:52 +00:00
jmc
9da9dc64b7
Add heapsort to libnbcompat
2004-11-28 06:57:14 +00:00
jmc
9a999c376a
Convert bebox's remaining host tools over to cross tools scheme. Builds to sets
...
w/o error now.
2004-11-25 08:09:14 +00:00
skrll
c31da5e397
Pass AR and RANLIB also.
...
OK'ed by mrg.
2004-10-18 08:33:48 +00:00
jmc
7a47cf149b
Check for fstatvfs and provide/use it only if the host system has it.
...
Fixes PR#27221
2004-10-12 03:28:30 +00:00