meson: Use global function in argp check
authorKhem Raj <raj.khem@gmail.com>
Wed, 22 Feb 2023 22:55:07 +0000 (14:55 -0800)
committerKhem Raj <raj.khem@gmail.com>
Wed, 22 Feb 2023 22:58:32 +0000 (14:58 -0800)
commite69d907c3fe8765ce50ce1258648ebc8283ef8a7
treea48f47f2b1508602fbe0da52ce73480db87767ec
parent0bed8496262a71beadccd4e562bdac093ef6e06f
meson: Use global function in argp check

clang is optimizing away parse_opt() since its marked static and not
used in main(), make life a bit harder for clang :)
removing static now emits the global symbols to be resolved during link
and when libargp is missing the error is thrown rightly

riscv64-yoe-linux-musl-ld: /tmp/a-5ba039.o: in function `.Lpcrel_hi0':
a.c:(.text+0x44): undefined reference to `argp_state_help'
clang-16: error: linker command failed with exit code 1 (use -v to see invocation)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
meson.build