[MacPorts] #69782: legacy-support: Minor issues with ARCHFLAGS in the Makefile

MacPorts noreply at macports.org
Sun Apr 21 02:52:48 UTC 2024


#69782: legacy-support: Minor issues with ARCHFLAGS in the Makefile
-----------------------------+----------------------
  Reporter:  TurtleWilly     |      Owner:  mascguy
      Type:  enhancement     |     Status:  assigned
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:
Resolution:                  |   Keywords:
      Port:  legacy-support  |
-----------------------------+----------------------

Comment (by fhgwright):

 I've seen cases where specifying the arch flag(s) in the usual `C*FLAGS`
 doesn't work and it *must* be done in `CC` or `CXX`, though admittedly
 that doesn't seem to be the case here.  But I normally use a wrapper
 script to build `legacy-support` anyway.  The script I use is set up to
 pick reasonable defaults on every system, though you can override them if
 you want.  The one thing it doesn't do is use `FORCE_ARCH`, since in this
 context it's easier just to have the MacPorts `cctools` active on the
 systems where the system `lipo` is inadequate.  The port avoids that for
 dependency reasons.

 With this script I usually just say something like:
 {{{
 ../.scripts/lscc.sh make
 }}}
 That works on all systems.

 I'll attach a copy of the script.

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


More information about the macports-tickets mailing list