On Aug 30, 2013, at 2:41 PM, jerem...@macports.org wrote: > Revision: 110369 > https://trac.macports.org/changeset/110369 > Author: jerem...@macports.org > Date: 2013-08-30 11:41:03 -0700 (Fri, 30 Aug 2013) > Log Message: > ----------- > Add support for setting cxx_stdlib in macports.conf > > This will be added to configure.cxxflags -stdlib=${cxx_stdlib} when the C++ > compiler is clang. This is a developer option to aide in testing ports with > libc++. Please do not file bug reports when using this option unless you > are also providing a fix for the problem being reported. > > It is reccomended that you reinstall all ports from source when changing this > option (make sure you set buildfromsource always).
> Modified: trunk/base/src/macports1.0/macports.tcl > =================================================================== > --- trunk/base/src/macports1.0/macports.tcl 2013-08-30 18:35:40 UTC (rev > 110368) > +++ trunk/base/src/macports1.0/macports.tcl 2013-08-30 18:41:03 UTC (rev > 110369) > @@ -963,6 +964,13 @@ > set macports::delete_la_files no > } > } > + if {![info exists macports::cxx_stdlib]} { > + if {$os_platform eq "darwin" && $os_major < 13} { > + set macports::cxx_stdlib libstdc++ > + } else { > + set macports::cxx_stdlib {} > + } > + } > if {![info exists > macports::global_options(ports_rev-upgrade_id-loadcmd-check)] > && [info exists macports::revupgrade_check_id_loadcmds]} { > set macports::global_options(ports_rev-upgrade_id-loadcmd-check) > $macports::revupgrade_check_id_loadcmds Doesn't Clang already default to libstdc++ on < 10.9? vq _______________________________________________ macports-dev mailing list macports-dev@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-dev