[76513] trunk/dports/math/atlas/Portfile
Joshua Root
jmr at macports.org
Sat Feb 26 13:36:28 PST 2011
> Revision: 76513
> http://trac.macports.org/changeset/76513
> Author: vince at macports.org
> Date: 2011-02-26 13:19:35 -0800 (Sat, 26 Feb 2011)
> Log Message:
> -----------
> Ensure that ${build_arch}='ppc' gives a 32-bit build even on a G5.
>
> Modified Paths:
> --------------
> trunk/dports/math/atlas/Portfile
>
> Modified: trunk/dports/math/atlas/Portfile
> ===================================================================
> --- trunk/dports/math/atlas/Portfile 2011-02-26 20:14:57 UTC (rev 76512)
> +++ trunk/dports/math/atlas/Portfile 2011-02-26 21:19:35 UTC (rev 76513)
> @@ -101,7 +101,18 @@
> -O 12 \
> -b ${my_arch} \
> -Fa alg -fPIC
> +
> +# MacPorts defaults to ppc on G4 and G5, so we must override 64-bit detection
> +# by Atlas, even if we are on a G5
>
> +if {${build_arch} == "ppc"} {
> + configure.args-delete --cc=${configure.cc} \
> + -Fa alg -fPIC
> +
> + configure.args-append --cc='${configure.cc} -m32' \
> + -Fa alg '-fPIC -m32'
> +}
Why not use ${configure.cc_archflags} all the time? Also, won't this
break universal?
- Josh
More information about the macports-dev
mailing list