[MacPorts] #50249: qt5-qtbase uses libstdc++ if C++11 support was not explicitly requested
#50249: qt5-qtbase uses libstdc++ if C++11 support was not explicitly requested --------------------------+------------------------ Reporter: ryandesign@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Keywords: | Port: qt5-qtbase --------------------------+------------------------ qt5-qtbase is programmed to build software using libstdc++ if C++11 support was not explicitly requested. For example, install the svn2git port on El Capitan and observe that it is linked with libstdc++ instead of libc++: {{{ $ otool -L /opt/local/bin/svn-all-fast-export /opt/local/bin/svn-all-fast-export: /opt/local/lib/libsvn_fs-1.0.dylib (compatibility version 1.0.0, current version 1.0.0) /opt/local/lib/libsvn_repos-1.0.dylib (compatibility version 1.0.0, current version 1.0.0) /opt/local/lib/libapr-1.0.dylib (compatibility version 6.0.0, current version 6.2.0) /opt/local/lib/libsvn_subr-1.0.dylib (compatibility version 1.0.0, current version 1.0.0) /opt/local/libexec/qt5/lib/QtCore.framework/Versions/5/QtCore (compatibility version 5.5.0, current version 5.5.1) /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration (compatibility version 1.0.0, current version 1.0.0) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0) /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 104.1.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1225.1.1) }}} This is weird and not the way other parts of MacPorts work. Ports built with Qt should respect the `configure.cxx_stdlib` variable like other ports do. -- Ticket URL: <https://trac.macports.org/ticket/50249> MacPorts <https://www.macports.org/> Ports system for OS X
#50249: qt5-qtbase uses libstdc++ if C++11 support was not explicitly requested ---------------------------+------------------------ Reporter: ryandesign@… | Owner: mcalhoun@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: | Keywords: Port: qt5-qtbase | ---------------------------+------------------------ Changes (by mcalhoun@…): * status: new => assigned Comment: As far as I can tell, the problem is {{{-mmacosx-version-min=10.7}}} that qmake uses in {{{CXXFLAGS}}} and {{{CFLAGS}}}.[[BR]] It seems to force the use of libstdc++. Having qmake respect {{{configure.cxx_stdlib}}} might be a little difficult.[[BR]] qmake seems to want its own ecosystem. As soon as I get a little bit of time, I will see what I can do. -- Ticket URL: <https://trac.macports.org/ticket/50249#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#50249: qt5-qtbase uses libstdc++ if C++11 support was not explicitly requested ---------------------------+------------------------ Reporter: ryandesign@… | Owner: mcalhoun@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: fixed | Keywords: Port: qt5-qtbase | ---------------------------+------------------------ Changes (by mcalhoun@…): * status: assigned => closed * resolution: => fixed Comment: Should be fixed in r144445. -- Ticket URL: <https://trac.macports.org/ticket/50249#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#50249: qt5-qtbase uses libstdc++ if C++11 support was not explicitly requested ---------------------------+------------------------ Reporter: ryandesign@… | Owner: mcalhoun@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: fixed | Keywords: Port: qt5-qtbase | ---------------------------+------------------------ Comment (by rjvbertin@…): Didn't you set `QMAKE_MACOSX_DEPLOYMENT_TARGET=` in the configure.pre_args before? Was there a reason to move it from there to configure.args? -- Ticket URL: <https://trac.macports.org/ticket/50249#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts