Ignore:
Timestamp:
Jan 9, 2016, 12:52:10 AM (3 years ago)
Author:
mcalhoun@…
Message:

qmake5 Portgroup: respect macosx_deployment_target and configure.cxx_stdlib values when building with qmake (fixes #50249)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/qmake5-1.0.tcl

    r142505 r144445  
    7575}
    7676
     77# override QMAKE_MACOSX_DEPLOYMENT_TARGET set in ${prefix}/libexec/qt5/mkspecs/macx-clang/qmake.conf
     78# see #50249
     79configure.args-append QMAKE_MACOSX_DEPLOYMENT_TARGET=${macosx_deployment_target}
     80
     81# override C++11 flags set in ${prefix}/libexec/qt5/mkspecs/common/clang-mac.conf
     82#    so value of ${configure.cxx_stdlib} can always be used
     83configure.args-append \
     84    QMAKE_CXXFLAGS_CXX11-=-stdlib=libc++ \
     85    QMAKE_LFLAGS_CXX11-=-stdlib=libc++
     86
     87# ensure ${configure.cxx_stdlib} is used for C++ stdlib
     88configure.args-append \
     89    QMAKE_CXXFLAGS+=-stdlib=${configure.cxx_stdlib} \
     90    QMAKE_LFLAGS+=-stdlib=${configure.cxx_stdlib}
     91
    7792if {![info exists qt5_qmake_request_no_debug]} {
    7893    variant debug description {Build both release and debug libraries} {}
Note: See TracChangeset for help on using the changeset viewer.