gnupg2: refresh GCC options in Makefile
authorTony Butler <spudz76@gmail.com>
Thu, 22 Dec 2022 23:26:21 +0000 (15:26 -0800)
committerRosen Penev <rosenp@gmail.com>
Fri, 23 Dec 2022 02:11:51 +0000 (18:11 -0800)
commitac78a5a21fded24cb3995967b9dc1ec042777e62
tree69e52b3865648a9a7eb13b5173c7b458a7657fb8
parentac09d1c2f1577a40dcf4eb0e3477a0a6b423ad8b
gnupg2: 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:
* `-DEXTERN_UNLESS_MAIN_MODULE=static` for "=10" (and newer, probably)
* no additional options for "not =10" (or older, 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"

Signed-off-by: Tony Butler <spudz76@gmail.com>
utils/gnupg2/Makefile