[MacPorts] #67235: giflib5 broken on <= 10.6: cc1: error: unrecognized command line option "-Wno-format-truncation"
MacPorts
noreply at macports.org
Tue Apr 18 14:10:11 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 ryandesign):
Well the Makefile says `CFLAGS =` which overwrites the environment
variable the makefile portgroup sets. You can tell the makefile portgroup
to use an arg instead of an env var, but that will then overwrite
everything in the Makefile's `CFLAGS`, which also wouldn't be correct; we
want a combination of MacPorts flags and the ones the Makefile wants. The
best solution is probably to patch the Makefile so that it says `CFLAGS
+=`, so that it appends to the flags the portgroup sets. This is a matter
to bring to the attention of the developers.
In addition, this Makefile wants the optimization flags specified
separtely in `OFLAGS`, so you could do that by adding:
{{{
configure.args-append OFLAGS="${configure.optflags}"
}}}
A revbump should go along with that.
--
Ticket URL: <https://trac.macports.org/ticket/67235#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list