From a5a7b29a665d1ef82fc606b5ee920e284e3ef1b7 Mon Sep 17 00:00:00 2001 From: Charles Brunet Date: Mon, 13 Mar 2023 09:14:54 -0400 Subject: prevent lib prefix warning from pkg-config --- unittests/internaltests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unittests/internaltests.py') diff --git a/unittests/internaltests.py b/unittests/internaltests.py index b29df77..28e5366 100644 --- a/unittests/internaltests.py +++ b/unittests/internaltests.py @@ -551,7 +551,7 @@ class InternalTests(unittest.TestCase): for i in ['libfoo.so.6.0', 'libfoo.so.5.0', 'libfoo.so.54.0', 'libfoo.so.66a.0b', 'libfoo.so.70.0.so.1']: libpath = Path(tmpdir) / i libpath.write_text('', encoding='utf-8') - found = cc._find_library_real('foo', env, [tmpdir], '', LibType.PREFER_SHARED) + found = cc._find_library_real('foo', env, [tmpdir], '', LibType.PREFER_SHARED, lib_prefix_warning=True) self.assertEqual(os.path.basename(found[0]), 'libfoo.so.54.0') def test_find_library_patterns(self): -- cgit v1.1