summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/cc/Makefile.fe
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2007-03-12 00:28:06 +0000
committerkan <kan@FreeBSD.org>2007-03-12 00:28:06 +0000
commitf85d4141eaf405aace116263c35cd7497a8abb72 (patch)
tree029a4aa766782f8feecb4ca1c1188dc07cfdbbea /gnu/usr.bin/cc/Makefile.fe
parent44a133f2e813fcb90c74f699b232eb1c17e9ccc4 (diff)
downloadFreeBSD-src-f85d4141eaf405aace116263c35cd7497a8abb72.zip
FreeBSD-src-f85d4141eaf405aace116263c35cd7497a8abb72.tar.gz
Minor Makefile cleanup. Do not use Makefile variables named 'version' and
'target'. Latter is problematic in particular as apparently FreeBSD's bsd.prog.mk re-defines it under some circumstances. This causes an unexpected failures like -dumpmachine not working for cc while working fine for c++. Do not re-define IN_GCC in multipe places, it gets inherited from Makefile.in anyway. PR: gnu/110143 Submitted by: usleepless at gmail
Diffstat (limited to 'gnu/usr.bin/cc/Makefile.fe')
-rw-r--r--gnu/usr.bin/cc/Makefile.fe6
1 files changed, 3 insertions, 3 deletions
diff --git a/gnu/usr.bin/cc/Makefile.fe b/gnu/usr.bin/cc/Makefile.fe
index a7057b1..bfa8cb2 100644
--- a/gnu/usr.bin/cc/Makefile.fe
+++ b/gnu/usr.bin/cc/Makefile.fe
@@ -2,14 +2,14 @@
# Front-end-only bits
-version!= sed -n /version_string/p ${GCCDIR}/version.c | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'
+GCC_VERSION!= sed -n /version_string/p ${GCCDIR}/version.c | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'
#
# These were previously defined in gcc.c. Just copy previous values from
# there. We ifdef most of them out for FREEBSD_NATIVE builds anyway.
# gcc.c won't compile without them though.
DRIVER_DEFINES = \
- -DDEFAULT_TARGET_VERSION=\"$(version)\" \
- -DDEFAULT_TARGET_MACHINE=\"$(target)\" \
+ -DDEFAULT_TARGET_VERSION=\"$(GCC_VERSION)\" \
+ -DDEFAULT_TARGET_MACHINE=\"$(GCC_TARGET)\" \
CFLAGS+= ${DRIVER_DEFINES}
OpenPOWER on IntegriCloud