diff options
author | ru <ru@FreeBSD.org> | 2002-05-16 15:18:13 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2002-05-16 15:18:13 +0000 |
commit | e55e9be036b7289cec34e3d9019c6c84bafc2632 (patch) | |
tree | 38291e4ff2f62dbf54aec664db53a45b58a4f2f0 | |
parent | 387caab142b0cffdca95f2e50becb797de13d91c (diff) | |
download | FreeBSD-src-e55e9be036b7289cec34e3d9019c6c84bafc2632.zip FreeBSD-src-e55e9be036b7289cec34e3d9019c6c84bafc2632.tar.gz |
Make it possible to build a cross compiler for alpha,
ia64 and sparc64 on systems that do not have atoll(3).
The "cross" here doesn't necessarily mean cross-arch.
-rw-r--r-- | gnu/usr.bin/cc/cc_tools/Makefile | 4 | ||||
-rw-r--r-- | gnu/usr.bin/cc/cc_tools/auto-host.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gnu/usr.bin/cc/cc_tools/Makefile b/gnu/usr.bin/cc/cc_tools/Makefile index 22bb6f9..5152220 100644 --- a/gnu/usr.bin/cc/cc_tools/Makefile +++ b/gnu/usr.bin/cc/cc_tools/Makefile @@ -19,6 +19,10 @@ CFLAGS+= -I. CFLAGS+= -static -DGENERATOR_FILE +.if defined(BOOTSTRAPPING) +CFLAGS+= -DBOOTSTRAPPING +.endif + #----------------------------------------------------------------------- # insn-* gunk diff --git a/gnu/usr.bin/cc/cc_tools/auto-host.h b/gnu/usr.bin/cc/cc_tools/auto-host.h index 338b5d3..34319a3 100644 --- a/gnu/usr.bin/cc/cc_tools/auto-host.h +++ b/gnu/usr.bin/cc/cc_tools/auto-host.h @@ -97,7 +97,10 @@ /* #undef HAVE___ARGZ_STRINGIFY */ /* Define if you have the atoll function. */ +#ifndef BOOTSTRAPPING +/* FreeBSD didn't always have atoll(3). */ #define HAVE_ATOLL 1 +#endif /* Define if you have the atoq function. */ /* #undef HAVE_ATOQ */ |