[MacPorts] #71391: qt4-creator-mac hardcodes deployment target
MacPorts
noreply at macports.org
Mon Nov 25 11:44:28 UTC 2024
#71391: qt4-creator-mac hardcodes deployment target
--------------------------+-----------------------------
Reporter: barracuda156 | Owner: michaelld@…
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.10.5
Keywords: | Port: qt4-creator-mac
--------------------------+-----------------------------
This is wrong:
{{{
/usr/bin/clang++ -c -pipe -mmacosx-version-min=10.5 -O2
-fvisibility=hidden -fvisibility-inlines-hidden -arch arm64 -Xarch_arm64
-mmacosx-version-min=12.0 -Wall -W -fPIC -DQSSH_LIBRARY
-DIDE_LIBRARY_BASENAME=\"lib\" -DQT_CREATOR -DQT_NO_CAST_TO_ASCII
-DQT_NO_CAST_FROM_ASCII -DUSE_SYSTEM_BOTAN -DQT_NO_DEBUG -DQT_GUI_LIB
-DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
-I/opt/local/libexec/qt4/share/mkspecs/macx-g++ -I. -I.moc/release-shared
-I/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers
-I/opt/local/libexec/qt4/Library/Frameworks/QtNetwork.framework/Versions/4/Headers
-I/opt/local/libexec/qt4/Library/Frameworks/QtGui.framework/Versions/4/Headers
-I../../../src -I../../libs
-I/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_devel_qt4
-creator-mac/qt4-creator-mac/work/qt-creator-2.8.1-src/tools
-I../../plugins -I../3rdparty -I/opt/local/include/botan-1.10
-I/opt/local/libexec/qt4/Library/Frameworks/QtGui.framework/Versions/4/Headers
-I/opt/local/libexec/qt4/Library/Frameworks/QtNetwork.framework/Versions/4/Headers
-I/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers
-I/opt/local/libexec/qt4/include -I.uic
-F/opt/local/libexec/qt4/Library/Frameworks -F/opt/local/libexec/qt4/lib
-o .obj/release-shared/moc_sshkeycreationdialog.o .moc/release-
shared/moc_sshkeycreationdialog.cpp
/usr/bin/clang++ -c -pipe -mmacosx-version-min=10.5 -O2
-fvisibility=hidden -fvisibility-inlines-hidden -arch arm64 -Xarch_arm64
-mmacosx-version-min=12.0 -Wall -W -fPIC -DQSSH_LIBRARY
-DIDE_LIBRARY_BASENAME=\"lib\" -DQT_CREATOR -DQT_NO_CAST_TO_ASCII
-DQT_NO_CAST_FROM_ASCII -DUSE_SYSTEM_BOTAN -DQT_NO_DEBUG -DQT_GUI_LIB
-DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
-I/opt/local/libexec/qt4/share/mkspecs/macx-g++ -I. -I.moc/release-shared
-I/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers
-I/opt/local/libexec/qt4/Library/Frameworks/QtNetwork.framework/Versions/4/Headers
-I/opt/local/libexec/qt4/Library/Frameworks/QtGui.framework/Versions/4/Headers
-I../../../src -I../../libs
-I/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_devel_qt4
-creator-mac/qt4-creator-mac/work/qt-creator-2.8.1-src/tools
-I../../plugins -I../3rdparty -I/opt/local/include/botan-1.10
-I/opt/local/libexec/qt4/Library/Frameworks/QtGui.framework/Versions/4/Headers
-I/opt/local/libexec/qt4/Library/Frameworks/QtNetwork.framework/Versions/4/Headers
-I/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers
-I/opt/local/libexec/qt4/include -I.uic
-F/opt/local/libexec/qt4/Library/Frameworks -F/opt/local/libexec/qt4/lib
-o .obj/release-shared/moc_sshdirecttcpiptunnel_p.o .moc/release-
shared/moc_sshdirecttcpiptunnel_p.cpp
/usr/bin/clang++ -c -pipe -mmacosx-version-min=10.5 -O2
-fvisibility=hidden -fvisibility-inlines-hidden -arch arm64 -Xarch_arm64
-mmacosx-version-min=12.0 -Wall -W -fPIC -DIDE_LIBRARY_BASENAME=\"lib\"
-DQT_CREATOR -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII
-DQTCREATOR_UTILS_LIB -DQT_NO_DEBUG -DQT_SCRIPT_LIB -DQT_GUI_LIB
-DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
-I/opt/local/libexec/qt4/share/mkspecs/macx-g++ -I. -I.moc/release-shared
-I/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers
-I/opt/local/libexec/qt4/Library/Frameworks/QtNetwork.framework/Versions/4/Headers
-I/opt/local/libexec/qt4/Library/Frameworks/QtGui.framework/Versions/4/Headers
-I/opt/local/libexec/qt4/Library/Frameworks/QtScript.framework/Versions/4/Headers
-I../../../src -I../../libs
-I/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_devel_qt4
-creator-mac/qt4-creator-mac/work/qt-creator-2.8.1-src/tools
-I../../plugins -I.
-I/opt/local/libexec/qt4/Library/Frameworks/QtScript.framework/Versions/4/Headers
-I/opt/local/libexec/qt4/Library/Frameworks/QtGui.framework/Versions/4/Headers
-I/opt/local/libexec/qt4/Library/Frameworks/QtNetwork.framework/Versions/4/Headers
-I/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers
-I/opt/local/libexec/qt4/include -I.uic
-F/opt/local/libexec/qt4/Library/Frameworks -F/opt/local/libexec/qt4/lib
-o .obj/release-shared/fileinprojectfinder.o fileinprojectfinder.cpp
}}}
`-mmacosx-version-min=12.0` comes from Qt4 settings, which is correct, but
`-mmacosx-version-min=10.5` is hardcoded in `qtcreator.pri`:
{{{
!isEqual(QT_MAJOR_VERSION, 5) {
# Qt5 doesn't support 10.5, and will set the minimum version
correctly to 10.6 or 10.7.
isEmpty(TIGER_COMPAT_MODE) {
QMAKE_CXXFLAGS *= -mmacosx-version-min=10.5
QMAKE_LFLAGS *= -mmacosx-version-min=10.5
}
}
}}}
Should be replaced with MacPorts’s set deployment target value.
--
Ticket URL: <https://trac.macports.org/ticket/71391>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list