diff options
author | avilla <avilla@FreeBSD.org> | 2011-07-02 00:07:54 +0800 |
---|---|---|
committer | avilla <avilla@FreeBSD.org> | 2011-07-02 00:07:54 +0800 |
commit | 26069ede4f980804dd016b96fd65431eaa2b1859 (patch) | |
tree | 3708bf0f477e6f62840968d04bb220fbfbdf7244 /Mk | |
parent | d25905e0b74c4adc40c5ccaea77beb2d9251c085 (diff) | |
download | freebsd-ports-graphics-26069ede4f980804dd016b96fd65431eaa2b1859.tar.gz freebsd-ports-graphics-26069ede4f980804dd016b96fd65431eaa2b1859.tar.zst freebsd-ports-graphics-26069ede4f980804dd016b96fd65431eaa2b1859.zip |
- Fix QMAKE_BASE_COMPILER detection when `cc` is (actually, will be)
linked to Clang.
- Mute the (harmless) error message "cc: not found" when `cc` is not
in PATH.
Discussed with: makc
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.qt.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Mk/bsd.qt.mk b/Mk/bsd.qt.mk index 384c772dbc1..a23b2fa4aee 100644 --- a/Mk/bsd.qt.mk +++ b/Mk/bsd.qt.mk @@ -112,7 +112,7 @@ QMAKEFLAGS+= QMAKE_CC="${CC}" QMAKE_CXX="${CXX}" \ # # Translate `c++` to its real name and select the appropriate mkspec. # -QMAKE_BASE_COMPILER!= cc --version | head -1 | sed -E 's/.+\(([^)]+)\).+/\1/' | cut -d " " -f 1 +QMAKE_BASE_COMPILER!= cc --version 2> /dev/null | awk 'NR == 1 { gsub(/[()]/, "", $2); print $2 }' .if ${QMAKE_BASE_COMPILER:L} == "gcc" QMAKE_BASE_COMPILER= g++ .endif |