[MacPorts] #35982: qt4-mac & Qt4 portgroup: clang spec for qmake
MacPorts
noreply at macports.org
Wed Sep 5 03:01:13 PDT 2012
#35982: qt4-mac & Qt4 portgroup: clang spec for qmake
--------------------------------------------+-------------------------------
Reporter: mojca.miklavec.lists@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: qt4-mac
--------------------------------------------+-------------------------------
This issue came up during inclusion of Goldendict port which currently
uses:
{{{
configure.cmd ${qt_qmake_cmd}
configure.pre_args
configure.universal_args-delete --disable-dependency-tracking
variant universal {}
build.args CC="${configure.cc} [get_canonical_archflags cc]" \
CXX="${configure.cxx} [get_canonical_archflags cxx]" \
LINK="${configure.cxx} [get_canonical_archflags cxx]"
\
XXXOBJC="${configure.cc} [get_canonical_archflags cc]"
}}}
The problem is that {{{${qt_qmake_cmd}}}} from Qt4 portgroup doesn't take
sufficient care of choosing the desired compiler. qmake can take a spec
file as an argument (something like {{{qmake -spec macx-llvm}}}) and the
spec file takes care of setting the compiler and its flags.
This is the list of currently installed spec files:
{{{
/opt/local/share/qt4/mkspecs/macx-g++/qmake.conf
/opt/local/share/qt4/mkspecs/macx-g++40/qmake.conf
/opt/local/share/qt4/mkspecs/macx-g++42/qmake.conf
/opt/local/share/qt4/mkspecs/macx-icc/qmake.conf
/opt/local/share/qt4/mkspecs/macx-llvm/qmake.conf
/opt/local/share/qt4/mkspecs/macx-pbuilder/qmake.conf
/opt/local/share/qt4/mkspecs/macx-xcode/qmake.conf
/opt/local/share/qt4/mkspecs/macx-xlc/qmake.conf
}}}
I actually miss {{{macx-clang}}} spec being present upstream, but even
then I'm not absolutely sure if this would cover all the cases. Most
probably there is some further tweaking needed to convince qmake to work
as desired (choose the right compiler and flags, possibly handling
universal builds as well).
--
Ticket URL: <https://trac.macports.org/ticket/35982>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list