[MacPorts] #39975: root: Add --enable-cxx11 when using libc++
MacPorts
noreply at macports.org
Mon Nov 11 17:29:10 PST 2013
#39975: root: Add --enable-cxx11 when using libc++
--------------------------+------------------------
Reporter: jfcaron@… | Owner: jeremyhu@…
Type: enhancement | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.2.0
Resolution: | Keywords:
Port: root |
--------------------------+------------------------
Comment (by jfcaron@…):
Replying to [comment:21 jeremyhu@…]:
> Replying to [comment:20 jfcaron@…]:
> > Replying to [comment:19 jeremyhu@…]:
> > > Yeah, that's because it won't be enabled on your configuration.
You'd need to install base trunk, choose libc++ as your C++ runtime, and
reinstall all of your ports.
> > >
> > > I suggest you set this in /opt/local/etc/macports/macports.conf :
> > > {{{
> > > buildfromsource always
> > > delete_la_files yes
> > > cxx_stdlib libc++
> > > }}}
> > >
> > > delete_la_files is there because this is a good opportunity for you
to do that as well (it would require a full reinstall just like switching
the C++ runtime)
> > >
> > > Note that Lion's libc++ is a bit older and you may run into issues
that have been fixed in Mountain Lion and Mavericks that weren't pulled
back into Lion software updates.
> >
> > Ah, that's a bit more drastic than I would like just to test a new
portfile configuration. I thought I just needed to have the port libcxx
installed. How likely is installing base trunk & switching C++ runtimes
to break a bunch of stuff? I'm willing to try it, but I don't want to be
unable to do real work come Monday morning because of broken ports...
>
> I'm doing that on all but one of my Mountain Lion machines.
>
> I was doing that on my Lion machine when I still had one.
>
> I didn't encounter any issues which I didn't also encounter with
Mavericks, and most of those are fixed or getting fixed.
I think I'm going to need more specific instructions before I can test
this on my machine. I've followed the instructions from here:
http://guide.macports.org/#installing.macports.subversion and here:
https://trac.macports.org/wiki/Migration (By the way, did I need to
actually delete the old MacPorts from the package at any point? I just
did sudo make install "on top" of whatever was there before.) After "sudo
make install" is when I added those three lines to macports.conf, is that
right?
After doing that, I did selfupdate and tried to upgrade my outdated ports,
but now cctools fails to build. I guess I need to uninstall & reinstall
all my ports, but I'll wait for confirmation before starting that long
process.
Jean-François
--
Ticket URL: <https://trac.macports.org/ticket/39975#comment:22>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list