diff options
author | Ting-Wei Lan <lantw@src.gnome.org> | 2017-12-18 20:52:06 +0800 |
---|---|---|
committer | Ting-Wei Lan <lantw@src.gnome.org> | 2018-01-07 01:56:05 +0800 |
commit | 7b4bcdf21e80b1040e88293c0020386994757bc2 (patch) | |
tree | 231f2c8c7e60ca33524b059fd3c611c389cb0578 | |
parent | ab2f68ec9cd3a7b9db3e22c77a1e7d703c26e612 (diff) | |
download | meson-7b4bcdf21e80b1040e88293c0020386994757bc2.zip meson-7b4bcdf21e80b1040e88293c0020386994757bc2.tar.gz meson-7b4bcdf21e80b1040e88293c0020386994757bc2.tar.bz2 |
gnome: Always use an ordered set to store LDFLAGS
The order of -L flags in LDFLAGS is critical to the build. Any
unexpected reordering can cause undefined reference error when linking.
-rw-r--r-- | mesonbuild/modules/gnome.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py index 3c6bcad..db85420 100644 --- a/mesonbuild/modules/gnome.py +++ b/mesonbuild/modules/gnome.py @@ -372,7 +372,7 @@ class GnomeModule(ExtensionModule): continue if gir_has_extra_lib_arg() and use_gir_args: - fixed_ldflags = set() + fixed_ldflags = OrderedSet() for ldflag in ldflags: if ldflag.startswith("-l"): fixed_ldflags.add(ldflag.replace('-l', '--extra-library=', 1)) |