RFC: PATCH: cxx_runtime option for macports.conf [was: Re: Host Versus MacPorts lib[std]c++]
Jeremy Huddleston Sequoia
jeremyhu at macports.org
Thu Aug 29 10:55:26 PDT 2013
On Aug 29, 2013, at 7:12, Michael Dickens <michaelld at macports.org> wrote:
> It seems to me like creating a
> branch (like what Mojca just did for the WX stuff) that sets
> "configure.cxxflags-append -stdlib=libc++" when compiling with clang,
> and "AS='clang -c -x assembler'" (or, whatever works) when compiling
> with GCC would be an interesting experiment. Those of us interested in
> having a common C++ runtime could contribute to it, try to get as many
> ports as possible tested and working with this methodology.
I just threw this together. It does not switch gcc's assembler as that is not really related and is something that should need to be handled by the gccXX ports.
Just set 'cxx_runtime libc++' in $prefix/etc/macports/macports.conf and rebuild everything that uses C++ (or just everything for good measure). I'm going to give it a shot on a fresh Mountain Lion VM and fix issues as I find them.
Since this doesn't change anything by default, I'm inclined to push this to trunk, but I want to live on it for a while and get feedback first.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cxx_stdlib.patch
Type: application/octet-stream
Size: 3715 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20130829/4f8f9f24/attachment-0001.obj>
-------------- next part --------------
--Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4145 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20130829/4f8f9f24/attachment-0001.p7s>
More information about the macports-dev
mailing list