[MacPorts] #67235: giflib5 broken on <= 10.6: cc1: error: unrecognized command line option "-Wno-format-truncation"

MacPorts noreply at macports.org
Sat Apr 15 15:47:38 UTC 2023


#67235: giflib5 broken on <= 10.6: cc1: error: unrecognized command line option
"-Wno-format-truncation"
-------------------------+-------------------------------------------------
  Reporter:              |      Owner:  Schamschula
  barracuda156           |
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.8.1
Resolution:              |   Keywords:  snowleopard, leopard, powerpc,
      Port:  giflib5     |  rosetta
-------------------------+-------------------------------------------------

Comment (by barracuda156):

 I guess we can just add archflags into the existing patch:
 {{{
 --- Makefile.orig       2023-04-14 14:56:29.000000000 -0500
 +++ Makefile    2023-04-14 14:57:04.000000000 -0500
 @@ -8,7 +8,7 @@
  #
  OFLAGS = -O0 -g
  OFLAGS  = -O2
 -CFLAGS  = -std=gnu99 -fPIC -Wall -Wno-format-truncation $(OFLAGS)
 +CFLAGS  = @ARCHFLAGS@ -std=gnu99 -fPIC -Wall $(OFLAGS)

  SHELL = /bin/sh
  TAR = tar
 }}}

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


More information about the macports-tickets mailing list