[MacPorts] #38374: clang/libc++ based c++11 compilation against macports boost not possible
MacPorts
noreply at macports.org
Wed Mar 13 09:36:38 PDT 2013
#38374: clang/libc++ based c++11 compilation against macports boost not possible
-----------------------------------------+--------------------------------
Reporter: macportbugs@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.3
Keywords: c++11, libc++, clang, boost | Port: boost
-----------------------------------------+--------------------------------
Compilation of software using Xcode 4.6 (Apple LLVM version 4.2) with
-std=c++11 and -stdlib=libc++ fails if this software depends on boost
because boost is linked against stdlibc++.
The following patch fixes this problem (probably not a perfect solution
though):
{{{
--- Portfile.orig 2013-03-10 02:00:39.000000000 +0100
+++ Portfile 2013-03-13 17:27:48.000000000 +0100
@@ -90,7 +90,7 @@
${worksrcpath}/tools/build/v2/tools/darwin.jam
if {[string length ${configure.sdkroot}] == 0} {
- write_jam "using darwin : : ${configure.cxx} : : ;"
+ write_jam "using darwin : : ${configure.cxx} :
<cxxflags>\"-std=c++11 -stdlib=libc++\" <linkflags>\"-stdlib=libc++\" : ;"
} else {
write_jam "using darwin : : ${configure.cxx} :
<compileflags>\"-isysroot ${configure.sdkroot}\" : ;"
}
}}}
--
Ticket URL: <https://trac.macports.org/ticket/38374>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list