summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-04-23 00:10:18 +0000
committerobrien <obrien@FreeBSD.org>2002-04-23 00:10:18 +0000
commit84b82bd4fa4ead1c866efebe81468d72be1a871f (patch)
treed5c658e1247ea636fb0e51b3ba801936e318823e /gnu
parent45f3bdde744be43fd191ee929a8c5a7cec0b0856 (diff)
downloadFreeBSD-src-84b82bd4fa4ead1c866efebe81468d72be1a871f.zip
FreeBSD-src-84b82bd4fa4ead1c866efebe81468d72be1a871f.tar.gz
Don't use "GCCDIR" as the multiple inclusion protector. Subdir Makefiles
may want to override GCCDIR and this gets in the way.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/cc/Makefile.inc6
1 files changed, 4 insertions, 2 deletions
diff --git a/gnu/usr.bin/cc/Makefile.inc b/gnu/usr.bin/cc/Makefile.inc
index 49c1aa5..355b0bc 100644
--- a/gnu/usr.bin/cc/Makefile.inc
+++ b/gnu/usr.bin/cc/Makefile.inc
@@ -3,7 +3,9 @@
.include "../Makefile.inc"
# Sometimes this is .include'd several times...
-.if !defined(GCCDIR)
+.if !defined(__CC_MAKEFILE_INC__)
+__CC_MAKEFILE_INC__= ${MFILE}
+
GCCDIR= ${.CURDIR}/../../../../contrib/gcc.295
TARGET_ARCH?= ${MACHINE_ARCH}
@@ -61,4 +63,4 @@ LIBCC_INT= ${.OBJDIR}/../cc_int/libcc_int.a
LIBCC_INT= ${.CURDIR}/../cc_int/libcc_int.a
.endif
-.endif # !GCCDIR
+.endif # !__CC_MAKEFILE_INC__
OpenPOWER on IntegriCloud