[MacPorts] #71699: harfbuzz @10.1.0_2+universal: ninja: error: unknown target 'CFLAGS+=-arch x86_64'

MacPorts noreply at macports.org
Wed Jun 4 19:18:23 UTC 2025


#71699: harfbuzz @10.1.0_2+universal: ninja: error: unknown target 'CFLAGS+=-arch
x86_64'
------------------------------+-------------------------------
  Reporter:  thetrial         |      Owner:  mascguy
      Type:  defect           |     Status:  assigned
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.10.5
Resolution:                   |   Keywords:  legacy-os, sierra
      Port:  harfbuzz, ninja  |
------------------------------+-------------------------------

Comment (by TellowKrinkle):

 Replying to [comment:25 Sabine-Schnabeltier]:
 > which allowed harfbuzz to compile, but something is going wrong during
 link.

 The muniversal 1.0 code is also adding to build args
 (merger_**build**_args), the only reason it acts differently is the 1.0
 code's method of adding arguments doesn't work on 1.1 so it's doing
 nothing.  The link failure is the issue the code is trying to fix.

 You can set environment variables like this (note the lack of quotes):

 {{{
 build.env.${arch}-append ${env_var}=[muniversal::get_archflag ${tool}
 ${arch}]
 }}}

 Which does work, but unlike the make arguments, this will override any
 build cflags/ldflags set elsewhere in the portfile, so it's not ideal.

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


More information about the macports-tickets mailing list