diff options
author | obrien <obrien@FreeBSD.org> | 1999-12-22 02:03:28 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 1999-12-22 02:03:28 +0000 |
commit | fe78d9d4b43d6c8583e562a9a1c56da61b8ac3f6 (patch) | |
tree | fb9272789ea292245fa2256d0fb1b75621ba05b1 /gnu | |
parent | e54126e848698eb39907dbd94e80e8a687352f80 (diff) | |
download | FreeBSD-src-fe78d9d4b43d6c8583e562a9a1c56da61b8ac3f6.zip FreeBSD-src-fe78d9d4b43d6c8583e562a9a1c56da61b8ac3f6.tar.gz |
* Support a non-default sized `long' data type. This allows one to easily
build the compiler with a 64-bit longs on the i386.
* Comment an important dependancy.
* Fix some style nits
Submitted by: bde
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/cc/Makefile.inc | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/gnu/usr.bin/cc/Makefile.inc b/gnu/usr.bin/cc/Makefile.inc index fb844a3..a2f0262 100644 --- a/gnu/usr.bin/cc/Makefile.inc +++ b/gnu/usr.bin/cc/Makefile.inc @@ -18,17 +18,19 @@ OUT_FILE= ${GCC_ARCH}.c OUT_OBJ= ${GCC_ARCH} target= ${MACHINE_ARCH}-unknown-freebsd -# These architectures are Cygnus's default for enabling Haifa -.if (${GCC_ARCH} == "alpha") || (${GCC_ARCH} == "sparc") -USE_EGCS_HAIFA=1 +# These architectures are Cygnus's default for enabling Haifa. +.if ${GCC_ARCH} == "alpha" || ${GCC_ARCH} == "sparc" +USE_EGCS_HAIFA= 1 .endif version!= sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${GCCDIR}/version.c -#version!= sed -e 's/.*\(egcs-[0-9\.]*\).*/\1/' < ${GCCDIR}/version.c CFLAGS+= -DFREEBSD_NATIVE -DIN_GCC -DHAVE_CONFIG_H CFLAGS+= -DDEFAULT_TARGET_VERSION=\"$(version)\" CFLAGS+= -DDEFAULT_TARGET_MACHINE=\"$(target)\" +.if defined(LONG_TYPE_SIZE) +CFLAGS+= -DLONG_TYPE_SIZE=${LONG_TYPE_SIZE} +.endif .if defined(USE_EGCS_HAIFA) CFLAGS+= -DHAIFA @@ -37,7 +39,7 @@ CFLAGS+= -DHAIFA # If hw.machine_arch doesn't match ${MACHINE_ARCH}, then we're cross # compiling. gcc needs to know about this, so we set the -DCROSS_COMPILE # define. -__M!=/sbin/sysctl -b hw.machine_arch +__M!= /sbin/sysctl -b hw.machine_arch .if ${__M} != ${MACHINE_ARCH} CFLAGS+= -DCROSS_COMPILE .endif @@ -46,6 +48,8 @@ CFLAGS+= -DCROSS_COMPILE CFLAGS+= -I${.OBJDIR}/../cc_tools .endif CFLAGS+= -I${.CURDIR}/../cc_tools +# This must go after the -I for cc_tools to resolve ambiguities for hash.h +# correctly. CFLAGS+= -I${GCCDIR} -I${GCCDIR}/config .if exists(${.OBJDIR}/../cc_drv) |