[94080] trunk/dports/lang/ocaml-devel/Portfile

Ryan Schmidt ryandesign at macports.org
Fri Jun 8 12:17:07 PDT 2012


On Jun 8, 2012, at 14:11, mww at macports.org wrote:

> Revision: 94080
>          https://trac.macports.org/changeset/94080
> Author:   mww at macports.org
> Date:     2012-06-08 12:11:09 -0700 (Fri, 08 Jun 2012)
> Log Message:
> -----------
> ocaml-devel: fix build on 10.7 by using gcc instead of clang 3.1
> 
> Modified Paths:
> --------------
>    trunk/dports/lang/ocaml-devel/Portfile
> 
> Modified: trunk/dports/lang/ocaml-devel/Portfile
> ===================================================================
> --- trunk/dports/lang/ocaml-devel/Portfile	2012-06-08 19:06:24 UTC (rev 94079)
> +++ trunk/dports/lang/ocaml-devel/Portfile	2012-06-08 19:11:09 UTC (rev 94080)
> @@ -32,6 +32,10 @@
> 
> set docdir          ${prefix}/share/doc/${name}
> 
> +platform darwin 11 {
> +    configure.compiler  gcc
> +}

Don't use "gcc"; use a specific compiler. Also, don't base your compile choice on the OS version. Also, it's preferable to try to make the software work with clang. If you cannot, then at least document your attempts and a link to the upstream bug report about clang incompatibility (file one if there isn't one already).

https://trac.macports.org/wiki/PortfileRecipes#compiler

https://trac.macports.org/wiki/UsingTheRightCompiler



More information about the macports-dev mailing list