diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2016-05-23 17:11:32 +0000 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2016-05-23 17:11:32 +0000 |
commit | f007450dde261784e0b5a2b11d82235e7b3ae2de (patch) | |
tree | a542f685952a9b613b21003825dcdfbe9ca0a672 | |
parent | a601beced33986987309946b3c96dbd170d13471 (diff) | |
download | FreeBSD-src-f007450dde261784e0b5a2b11d82235e7b3ae2de.zip FreeBSD-src-f007450dde261784e0b5a2b11d82235e7b3ae2de.tar.gz |
Use sed(1) to determine cc version rather than tail(1) since it is already in ITOOLS.
This fixes 'tail: not found' warnings in installworld after r300351.
Sponsored by: EMC / Isilon Storage Division
-rw-r--r-- | share/mk/bsd.compiler.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/mk/bsd.compiler.mk b/share/mk/bsd.compiler.mk index d4a9b1c..d078dfe 100644 --- a/share/mk/bsd.compiler.mk +++ b/share/mk/bsd.compiler.mk @@ -156,7 +156,7 @@ ${X_}COMPILER_VERSION!=echo "${_v:M[1-9].[0-9]*}" | awk -F. '{print $$1 * 10000 .undef _v .endif .if !defined(${X_}COMPILER_FREEBSD_VERSION) -${X_}COMPILER_FREEBSD_VERSION!= { echo "__FreeBSD_cc_version" | ${${cc}} -E - 2>/dev/null || echo __FreeBSD_cc_version; } | tail -n 1 +${X_}COMPILER_FREEBSD_VERSION!= { echo "__FreeBSD_cc_version" | ${${cc}} -E - 2>/dev/null || echo __FreeBSD_cc_version; } | sed -n '$$p' # If we get a literal "__FreeBSD_cc_version" back then the compiler # is a non-FreeBSD build that doesn't support it or some other error # occurred. |