[kde-freebsd] bsd.qt.mk vs bsd.gcc.mk: USE_GCC -> CXX -> QMAKESPEC

Andriy Gapon avg at FreeBSD.org
Sat Jun 2 08:21:10 UTC 2012


bsd.qt.mk sets QMAKESPEC based on CXX.  This is done in the "early" stage of
bsd.port.mk processing (!_POSTMKINCLUDED).
bsd.gcc.mk may change CXX value based on USE_GCC (or WITH_GCC/WANT_CC in the
future).  But this is done in the "main" stage (_POSTMKINCLUDED).

Thus, QMAKESPEC may fail to honor USE_GCC.
Is there a good reason that QMAKESPEC is derived that early?
Could that logic be moved to the "main" stage?

Alternatively, maybe USE_GCC -> CXX logic should be moved to the "early" stage?

-- 
Andriy Gapon


More information about the kde-freebsd mailing list