gnome: Fix building gir with asan again

asan must be first in ldflags and this order was lost in cb36add970

So this is the most simple solution of just putting it first in internal_ldflags

See https://github.com/mesonbuild/meson/issues/2117#issuecomment-408560838
pull/3959/head
TingPing 7 years ago committed by Jussi Pakkanen
parent 6b9fdfe67b
commit bd21987685
  1. 2
      mesonbuild/modules/gnome.py

@ -511,7 +511,7 @@ class GnomeModule(ExtensionModule):
sanitize = state.environment.coredata.base_options['b_sanitize'].value
cflags += compilers.sanitizer_compile_args(sanitize)
if 'address' in sanitize.split(','):
external_ldflags += ['-lasan']
internal_ldflags += ['-lasan'] # This must be first in ldflags
# FIXME: Linking directly to libasan is not recommended but g-ir-scanner
# does not understand -f LDFLAGS. https://bugzilla.gnome.org/show_bug.cgi?id=783892
# ldflags += compilers.sanitizer_link_args(sanitize)

Loading…
Cancel
Save