[MacPorts] UsingTheRightCompiler modified

MacPorts noreply at macports.org
Mon Aug 26 09:55:07 PDT 2013


Page "UsingTheRightCompiler" was changed by egall at gwmail.gwu.edu
Diff URL: <https://trac.macports.org/wiki/UsingTheRightCompiler?action=diff&version=26>
Revision 26
Comment: Add information about C++ runtimes based on https://lists.macosforge.org/pipermail/macports-dev/2013-August/024044.html
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: UsingTheRightCompiler
=========================================================================
--- UsingTheRightCompiler (version: 25)
+++ UsingTheRightCompiler (version: 26)
@@ -127,9 +127,28 @@
 if you set ${configure.compiler} to a compiler provided by a MacPorts port,
 you must also declare a library dependency on that port.
 
+=== C++ ===
+One thing to be aware of when choosing which compiler to use is that different
+compilers use different C++ runtimes:
+
+||= Compiler =||= C++ runtime used =||
+|| gcc-* || host libstdc++ ||
+|| *llvm-gcc-4.2 || host libstdc++ ||
+|| apple-gcc-* || host libstdc++ ||
+|| macports-gcc-* || MP libstdc++ ||
+|| dragonegg-* || MP libstdc++ ||
+|| clang < 163 || host libstdc++ ||
+|| clang >= 163 || host libstdc++ or host libc++ ||
+|| macports-clang-* || host libstdc++ or host libc++ ||
+Be careful about mixing different C++ runtimes, as there are incompatibilities
+between them that can lead to problems.
+
+=== Fortran ===
 For the MacPorts gcc 4 compilers,
 additional environment variables FC, F77 and F90 are set to the path of the Fortran compiler.
 These variables are not set for the other compilers because they do not include a Fortran compiler.
+Note if that you are developing a port that uses Fortran, there is a [wiki:PortfileRecipes#fortran Fortran PortfileRecipe]
+that you can use to simplify the usage of Fortran in your port.
 
 == Ports with nonstandard or nonexistent configure scripts == #nonstandard-ports
 
-------8<------8<------8<------8<------8<------8<------8<------8<--------

--
Page URL: <https://trac.macports.org/wiki/UsingTheRightCompiler>
MacPorts <http://www.macports.org/>
Ports system for OS X

This is an automated message. Someone added your email address to be
notified of changes on 'UsingTheRightCompiler' page.
If it was not you, please report to .


More information about the macports-changes mailing list