[MacPorts] #66018: serf1 fails to build with default compiler gcc 4.2

MacPorts noreply at macports.org
Fri Oct 21 20:45:47 UTC 2022


#66018: serf1 fails to build with default compiler gcc 4.2
-----------------------+--------------------------------
  Reporter:  rmottola  |      Owner:  (none)
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:  leopard gcc legacy
      Port:  serf1     |
-----------------------+--------------------------------

Comment (by ryandesign):

 Replying to [comment:5 kencu]:
 > {{{
 > CFLAGS=" -arch ${configure.build_arch}"
 > }}}

 You probably don't want to specify just these CFLAGS. You probably want to
 specify all of the CFLAGS that MacPorts wants the port to specify. They're
 in the `${configure.cflags}` variable. `-arch` flags are not included in
 that variable; to add those, add `[get_canonical_archflags cc]`. For
 `get_canonical_archflags` to do universal builds properly, a universal
 variant (at least an empty one) needs to be stated prior to that line
 (`variant universal {}`). The same probably applies to CXXFLAGS (if this
 port contains C++ parts) and LDFLAGS. The makefile portgroup, which this
 portfile already includes, is supposed to help you do all this more
 automatically; the fact that it's not working suggests a bad interaction
 between the makefile portgroup and the port's build system that should
 probably be solved by either specifying some makefile portgroup variables
 properly or patching the build system.

-- 
Ticket URL: <https://trac.macports.org/ticket/66018#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list