Macports uses the default -stdlib
option which is libc++
on OSX 10.11. However, I need to use libstdc++
because I use other libraries rely on that. Up to this point, this question is the same with the following two questions: 1 and 2, and I know the answer is sudo port install PORTNAME configure.cxx_stdlib="libstdc++"
.
However, I need to install an older port (specifically Boost 1.52) and the way to do it is to check out the port's directory at the desired revision using the svn
command (which creates a directory called PORTNAME in the current location, and populates that with everything the port needs to build) and then we install the port as follows:
$ cd PORTNAME
$ sudo port install
If I add configure.cxx_stdlib="libstdc++"
to the end of the install command, macports does not honor the request. I edit the Portfile
of the downloaded older port manually and add the instruction there but that didn't workout. I edit the macports.conf
file but this didn't workout either...
TL;DR, how do we compile an "older" port with libstdc++
on OSX 10.11?