[86992] trunk/dports/emulators/virtualbox
Ryan Schmidt
ryandesign at macports.org
Tue Nov 8 09:26:59 PST 2011
On Nov 7, 2011, at 15:40, royliu at macports.org wrote:
> Revision: 86992
> http://trac.macports.org/changeset/86992
> Author: royliu at macports.org
> Date: 2011-11-07 13:40:37 -0800 (Mon, 07 Nov 2011)
> Log Message:
> -----------
> virtualbox: set the c and c++ compilers as configure flags
> configure.args --with-qt-dir=${prefix} \
> - --with-openssl-dir=${prefix}
> + --with-openssl-dir=${prefix} \
> + --with-gcc=${prefix}/bin/gcc-apple-4.2 \
> + --with-g++=${prefix}/bin/g++-apple-4.2
This will not work for users who do not have the apple-gcc42 port installed. Only users with Xcode 4.2 and up need this. Users with earlier versions of Xcode should be served just fine with the version of gcc42 included in Xcode.
Please use the variables ${configure.cc} and ${configure.cxx} here instead, and on some line before this, set configure.compiler, if you desire to override MacPorts' default compiler choice. As had been discussed in the ticket that originated this change (whose ticket number should have been mentioned in the commit message), you will want to use the 3rd block shown here:
https://trac.macports.org/wiki/PortfileRecipes#compiler
More information about the macports-dev
mailing list