RFC: PATCH: cxx_runtime option for macports.conf [was: Re: Host Versus MacPorts lib[std]c++]

Jeremy Huddleston Sequoia jeremyhu at macports.org
Fri Aug 30 11:52:07 PDT 2013


I pushed this to trunk/base as r110369

I got pretty far last night without any major issues on my ML VM.  I just needed to autoreconf a few projects to update their bundled glibtool (older versions did not pass -stdlib=libc++ to the linker).

Unfortunately, issues with the VM unrelated to these changes have put a stall on my testing/fixing of ports in this category, but I'll get back to it eventually.

Since the barrier to entry is quite low (add "cxx_stdlib libc++" to macports.conf and rebuild), hopefully other interested developers can jump on board and fix ports that they use and/or maintain.

Thanks,
Jeremy

On Aug 29, 2013, at 10:55, Jeremy Huddleston Sequoia <jeremyhu at macports.org> wrote:

> 
> 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.
> 
> <cxx_stdlib.patch>
> 
> --Jeremy_______________________________________________
> macports-dev mailing list
> macports-dev at lists.macosforge.org
> https://lists.macosforge.org/mailman/listinfo/macports-dev

-------------- 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/20130830/58ea8b61/attachment-0001.p7s>


More information about the macports-dev mailing list