> On Aug 24, 2015, at 10:41 PM, [email protected] wrote:
> 
> Revision
> 139709
> Author
> [email protected]
> Date
> 2015-08-24 20:41:08 -0700 (Mon, 24 Aug 2015)
> Log Message
> 
> mkpwd: update to 0.8 #48638; use the right compiler

> Modified: trunk/dports/sysutils/mkpwd/Portfile (139708 => 139709)

>  use_configure       no
>  
> +build.args-append   CC=${configure.cc}

Using the right compiler is good, but anytime a port uses "use_configure no", 
you need to also assume that the port isn't using the right -arch flags, which 
appears to be the case here as well. Fixing that (by adding the output of 
"[get_canonical_archflags cc]", "[get_canonical_archflags cxx]", and 
"[get_canonical_archflags ld]" to CFLAGS, CXXFLAGS, and LDFLAGS (or this 
project's equivalent), respectively, or if necessary by adding the output 
directly to configure.cc and/or configure.cxx) also provides an opportunity to 
add a working universal variant (by defining an empty universal variant using 
"variant universal {}" prior to the first invocation of 
get_canonical_archflags).

I've made these changes in r139720.

_______________________________________________
macports-dev mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to