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

MacPorts noreply at macports.org
Thu Oct 20 01:57:38 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 kencu):

 Hey, right on!

 As step 1, we will need to get some arch flags onto the build line to
 force the compiler to build in the arch we want...

 This is one of those no-configure makefile only ports, and to make it even
 harder, it uses scons...

 Changing the override block in the portfile to this worked:
 platform darwin {
     # Workaround scons buggy lack of MACOSX_DEPLOYMENT_TARGET propagation:
 CC="MACOSX_DEPLOYMENT_TARGET=${macosx_deployment_target} ${configure.cc}"
                         CFLAGS=" -arch ${configure.build_arch}"

 Have to sort out what to do about universal builds though. Perhaps one of
 you two might help with that?

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

More information about the macports-tickets mailing list