failed bsd.qt.mk fix...

Alberto Villa avilla at freebsd.org
Sun Jul 3 17:08:36 UTC 2011


On Sunday 03 July 2011 15:25:09 Chris Rees wrote:
> As I read it, while it supports a system where cc is a link to clang,
> it still clobbers whatever ${CC} variable I have set.

this is wrong. here is how the logic works:
- find if cc is gcc or clang
- if CXX is the default c++, then we're using the system compiler (gcc or 
clang)
- otherwise, find what CXX refers to, and set it as the qt compiler (if and 
only if there is a qmakespec for this compiler, otherwise fall back to the 
system one)

this works fine with cc linking to gcc, and CXX=clang++, and passed other 
tests using make -VQMAKESPEC CXX=something
-- 
Alberto Villa, FreeBSD committer <avilla at FreeBSD.org>
http://people.FreeBSD.org/~avilla

What this country needs is a dime that will buy a good five-cent bagel.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 314 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20110703/b20f92d5/attachment.pgp


More information about the freebsd-ports mailing list