[MacPorts] #39918: serf1: re-enable universal variant

MacPorts noreply at macports.org
Thu Aug 1 19:28:29 PDT 2013


#39918: serf1: re-enable universal variant
---------------------------+---------------------
  Reporter:  ryandesign@…  |      Owner:  blair@…
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.2.0
Resolution:                |   Keywords:
      Port:  serf1         |
---------------------------+---------------------

Comment (by ryandesign@…):

 This (though untested) would be shorter, and more accurate in that the
 universal build would get the regular c-, cpp- and ldflags too, and the
 non-universal build would get correct `-arch` flags too:

 {{{
 variant universal {}

 build.cmd       ${prefix}/bin/scons
 build.args      CC=${configure.cc} \
                 CFLAGS=[string map {" " ","} "${configure.cflags}
 [get_canonical_archflags cc]"] \
                 CPPFLAGS=[string map {" " ","} "${configure.cppflags}"] \
                 LINKFLAGS=[string map {" " ","} "${configure.ldflags}
 [get_canonical_archflags ld]"]
 }}}

 That's assuming it's correct to concatenate these flags with commas
 instead of spaces. I've never seen that before and it seems weird to me.
 But we've already established that scons is needlessly weird.

-- 
Ticket URL: <https://trac.macports.org/ticket/39918#comment:11>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list