libunistring detection doesn't honor CPPFLAGS
The current method of detecting libunistring using assert(cc.links(..))
doesn't honor the environment. This breaks in cases where an explicit include path is required to pick up the uniconv.h
file.
On OpenBSD the header is found at /usr/local/include/uniconv.h
but gnome-characters fails to detect it:
Checking if "libunistring support" links: NO
meson.build:43:0: ERROR: Assert failed: libunistring is required but not found
Full logfile is attached.meson-log.txt
I have modified the cc.links()
invocation's args
as such:
args: ['-lunistring', '-I/usr/local/include'])
And that works; but is there a more portable way of passing the previously configured CPPFLAGS and LDFLAGS to cc.links()
in this case?