#36872: qt4-mac c++11 variant request ------------------------------+------------------------- Reporter: patlaborforce@… | Owner: michaelld@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: qt4-mac | ------------------------------+------------------------- Comment (by michaelld@…): This won't work with Apple's GCC since it's too old to accept that flag, but I believe MacPorts' gcc 4.7 and newer should work with the flag. It looks like it might work with the latest Apple clang, and maybe also MacPorts' latest clang. I've never tested Qt using MacPorts gcc or clang; I really don't know if it would work. I think your primary option is to use the latest Apple clang, which is available on 10.7 and 10.8 only if I remember correctly. Qt's "configure" script (as of 4.8.3) does not provide an explicit option to choose the C++ compiling version. The Qt 5.0 beta does provide a flag ("-c++11" or "-no-c++-11") but I haven't figure out how to get it to compile yet (with or without this flag) and hence it is not in qt4-mac- devel yet. If you have the latest Apple clang, I would advise you to add "-D -std=c++11" after "-no-phonon-backend" in the current qt4-mac Portfile and see if that works; if it does, then I'll add that as a variant. If it does not, then I won't and I'm really not interested in hacking in support for c++11 in any other way. -- Ticket URL: <https://trac.macports.org/ticket/36872#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS