imagemagick: refresh GCC options in Makefile
authorTony Butler <redacted>
Thu, 22 Dec 2022 23:24:45 +0000 (15:24 -0800)
committerRosen Penev <redacted>
Fri, 23 Dec 2022 02:11:51 +0000 (18:11 -0800)
commitac09d1c2f1577a40dcf4eb0e3477a0a6b423ad8b
tree99734217a634abd20b760e60b182ea3860cc4d32
parenta2effac2623d18581694975b2f6f718b272d3b8d
imagemagick: refresh GCC options in Makefile

this Makefile still used `CONFIG_GCC_USE_VERSION_*` to select various
compilation options, for GCC versions that are antiquated

convert to parsing the major from the `CONFIG_GCC_VERSION` which will
always exist and can also be used with range logic

intent seemed to be:
* `-flto` for "not =10" (or newer, probably)
* no additional options for "=10" (and newer, probably)

GCC 11 or 12 would likely revert to the default (not =10) option,
because 10 was the newest at the time, and 11 and 12 are "not 10"

unsure of what actually works, perhaps `-flto` works in all versions by
now (possibly early gcc 10 bug workaround?)

GCC 11 will have been using `-flto` anyway by the current logic and I
guess it must be working or there would have been changes

Signed-off-by: Tony Butler <redacted>
multimedia/imagemagick/Makefile
git clone https://git.99rst.org/PROJECT