diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2019-09-16 10:27:11 -0400 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2019-09-17 11:56:46 -0400 |
commit | 5d0ced220c56a7599913c9e249b85f0d6a060821 (patch) | |
tree | 1f1e12600006ab661390677344571dcb4a69b397 /run_unittests.py | |
parent | 7e2c54c0a38788380c7f05dff3244faaa76e0220 (diff) | |
download | meson-5d0ced220c56a7599913c9e249b85f0d6a060821.zip meson-5d0ced220c56a7599913c9e249b85f0d6a060821.tar.gz meson-5d0ced220c56a7599913c9e249b85f0d6a060821.tar.bz2 |
pkgconfig: Fix ordering of public libraries
The main library must come before extra libraries, because they are
likely to be dependencies of the main library that get promoted from
private to public. This was causing static link issues with glib-2.0.pc.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py index 8cc9811..17ae45e 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -4577,6 +4577,10 @@ class LinuxlikeTests(BasePlatformTests): else: self.assertEqual(sorted(out), sorted(['libexposed', 'libfoo>=1.0', 'libhello'])) + cmd = ['pkg-config', 'pub-lib-order'] + out = self._run(cmd + ['--libs'], override_envvars=env).strip().split() + self.assertEqual(out, ['-llibmain2', '-llibinternal']) + def test_pkg_unfound(self): testdir = os.path.join(self.unit_test_dir, '23 unfound pkgconfig') self.init(testdir) |