linuxwacom / xf86-input-wacom

X.Org driver for Wacom devices
356 stars 46 forks source link

meson: use gnu_symbol_visibility - sort-of #255

Closed whot closed 2 years ago

whot commented 2 years ago

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.