diff options
author | obrien <obrien@FreeBSD.org> | 2002-03-21 01:34:56 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2002-03-21 01:34:56 +0000 |
commit | 1dac03fb5ec0f74ba85fc73617f1b78eb503b38a (patch) | |
tree | 35ad9283f24738211432737573618ebe52434df4 | |
parent | ec342524a2418f4084435057ba14186152670acc (diff) | |
download | FreeBSD-src-1dac03fb5ec0f74ba85fc73617f1b78eb503b38a.zip FreeBSD-src-1dac03fb5ec0f74ba85fc73617f1b78eb503b38a.tar.gz |
Properly get the version number after the 2.95.4 upgrade.
-rw-r--r-- | gnu/usr.bin/cc/Makefile.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/usr.bin/cc/Makefile.inc b/gnu/usr.bin/cc/Makefile.inc index 7b6a2ec..7776326 100644 --- a/gnu/usr.bin/cc/Makefile.inc +++ b/gnu/usr.bin/cc/Makefile.inc @@ -20,7 +20,8 @@ target= ${TARGET_ARCH}-unknown-freebsd USE_EGCS_HAIFA= 1 .endif -version!= sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${GCCDIR}/version.c +version!= grep version_string ${GCCDIR}/version.c \ + | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' CFLAGS+= -DIN_GCC -DHAVE_CONFIG_H CFLAGS+= -DPREFIX=\"${TOOLS_PREFIX}/usr\" |