[121203] trunk/dports/python/py-sip/Portfile

Ryan Schmidt ryandesign at macports.org
Sat Jun 21 16:16:17 PDT 2014


On Jun 19, 2014, at 9:10 PM, michaelld at macports.org wrote:

> Revision
> 121203
> Author
> michaelld at macports.org
> Date
> 2014-06-19 19:10:32 -0700 (Thu, 19 Jun 2014)
> Log Message
> 
> py*-sip: Always add some arch flags during configuration, since the user might have overridden the default arch build.  Addresses ticket #44086.

> Modified: trunk/dports/python/py-sip/Portfile (121202 => 121203)

> @@ -97,6 +99,15 @@
>                                      ${configure.universal_ldflags}"
>          configure.post_args-append  CFLAGS="${configure.universal_cflags}"
>          configure.post_args-append  CXXFLAGS="${configure.universal_cxxflags}"
> +
> +    } else {
> +
> +        configure.args-append       "--arch=${configure.build_arch}"
> +        configure.post_args LFLAGS="-F${frameworks_dir} -L${prefix}/lib \
> +                                    ${configure.ld_archflags}"
> +        configure.post_args-append  CFLAGS="${configure.cc_archflags}"
> +        configure.post_args-append  CXXFLAGS="${configure.cxx_archflags}"
> +
>      }
>  
>      if {[vercmp ${xcodeversion} 4.3] < 0} {

You don't need to handle the universal and non-universal parts separately; you can use the [get_canonical_archflags] procedure to get the correct -arch flags regardless whether the universal variant was set or not, provided you define a universal variant before the first time you invoke get_canonical_archflags (even if the universal variant is empty).




More information about the macports-dev mailing list