[MacPorts] #41321: kdelibs4: invalid deployment target for -stdlib=libc++ (requires OS X 10.7 or later)
MacPorts
noreply at macports.org
Thu Dec 5 22:25:18 PST 2013
#41321: kdelibs4: invalid deployment target for -stdlib=libc++ (requires OS X 10.7
or later)
------------------------------------+-----------------------
Reporter: ryandesign@… | Owner: nicos@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.2.99
Resolution: | Keywords: mavericks
Port: kdelibs4, kdepimlibs4 |
------------------------------------+-----------------------
Comment (by ryandesign@…):
Actually the error is coming from clang. So we need to set
`MACOSX_DEPLOYMENT_TARGET` correctly. So maybe it's cmake that's wrong (it
certainly wouldn't be the first time): maybe cmake shouldn't be
complaining at us about setting `MACOSX_DEPLOYMENT_TARGET` when
`CMAKE_OSX_SYSROOT` is set to "/".
I don't remember why we didn't want to set a complete SDK path, I just
remember it not working well. Part of the problem might have been that
MacPorts doesn't give us a variable containing the SDK path, and the SDK
path has varied several times with different Xcode versions. It would take
some research to find out all the possibilities and write them into the
cmake portgroup.
But I don't think that's the only thing; I think there were actually
problems using an SDK when it wasn't needed. Here are some relevant
revisions in the history of the cmake portgroup; I haven't yet looked into
these:
* r60805: only use SDK when needed in cmake portgroup
* r66929: configure.sdkroot support
* r73038: pick up sdkroot for universal on ppc tiger
* r78651: set sysroot to / when an SDK is not needed (see #29008, #29452)
* r101141: Ensure that CMAKE_OSX_DEPLOYMENT_TARGET is unset if
CMAKE_OSX_SYSROOT is /
* r101169: Revise the previous commit to just not set CMAKE_OSX_SYSROOT
or CMAKE_OSX_DEPLOYMENT_TARGET in that case (#37527)
* r101420: Revert r101169 with added comment as to why it's needed
--
Ticket URL: <https://trac.macports.org/ticket/41321#comment:8>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list