The best practise is not to do it, unless it is for non C++ code (C, fortran, 
..), as using gcc for C++ will lead to C++ runtime issues if the binaries you 
produce are used with others that where produced using clang, which like it or 
not is now the default OS X compiler.

> On 26 Feb 2015, at 1:56pm, Artur Szostak <[email protected]> wrote:
> 
> Hi,
> 
> I couldnt really find this information and I see lots of different approaches 
> in the Portfiles.
> What is the current best practice to select the GCC compiler over the XCode 
> clang one used by default?
> I dont care much about the exact version of the GCC compiler used, but it 
> must be gcc rather than clang.
> 
> Kind regards.
> 
> Artur
> _______________________________________________
> macports-dev mailing list
> [email protected]
> https://lists.macosforge.org/mailman/listinfo/macports-dev

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
macports-dev mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to