meson has gnu_symbol_visibility which is set correctly depending on the
compiler. Except - where the X server was built with a
symbol-visibility-supporting compiler it will always force
-fvisibility=hidden into the cflags, see
https://gitlab.freedesktop.org/xorg/xserver/-/issues/1316
Meson sorts pkgconf cflags after the gnu_symbol_visibility flag so the
pkgconf cflag overrides our gnu_symbol_visibility flag.
Make a note on this so no-one else has to spend time wondering about and
debugging this.
meson has
gnu_symbol_visibility
which is set correctly depending on the compiler. Except - where the X server was built with a symbol-visibility-supporting compiler it will always force-fvisibility=hidden
into the cflags, see https://gitlab.freedesktop.org/xorg/xserver/-/issues/1316Meson sorts pkgconf cflags after the
gnu_symbol_visibility
flag so the pkgconf cflag overrides our gnu_symbol_visibility flag. Make a note on this so no-one else has to spend time wondering about and debugging this.