aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2019-09-16 10:27:11 -0400
committerXavier Claessens <xclaesse@gmail.com>2019-09-17 11:56:46 -0400
commit5d0ced220c56a7599913c9e249b85f0d6a060821 (patch)
tree1f1e12600006ab661390677344571dcb4a69b397 /run_unittests.py
parent7e2c54c0a38788380c7f05dff3244faaa76e0220 (diff)
downloadmeson-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-xrun_unittests.py4
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)