[112576] trunk/dports/sysutils/tag/Portfile

Ryan Schmidt ryandesign at macports.org
Sun Oct 27 06:10:02 PDT 2013


On Oct 26, 2013, at 17:39, jberry at macports.org wrote:

> Revision
> 112576
> Author
> jberry at macports.org
> Date
> 2013-10-26 15:39:12 -0700 (Sat, 26 Oct 2013)
> Log Message
> 
> tag: add build env definitions
> Modified Paths
> 
> 	• trunk/dports/sysutils/tag/Portfile
> Diff
> 
> Modified: trunk/dports/sysutils/tag/Portfile (112575 => 112576)
> 
> --- trunk/dports/sysutils/tag/Portfile	2013-10-26 19:59:51 UTC (rev 112575)
> +++ trunk/dports/sysutils/tag/Portfile	2013-10-26 22:39:12 UTC (rev 112576)
> 
> @@ -22,6 +22,14 @@
> 
>                      sha256  a45322cc021b8804cf36f3438f0897acaf4ded2e2e5863c370d8bf42cd1686ac
> 
>  
> 
>  use_configure       no
> 
> +
> +variant universal {}
> +
> +build.env           CC="${configure.cc}" \
> +                    CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
> +                    CPPFLAGS="${configure.cppflags}" \
> +                    LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]”

This uses the right compiler, but doesn’t actually pass the flags along.

The only flag variable the Makefile seems to use is CFLAGS, and it overrides it, meaning if you want to set it, you have to use build.args not build.env. 



More information about the macports-dev mailing list