diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2022-12-19 12:35:22 +0100 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2023-01-04 09:44:32 -0800 |
commit | 863f2a6d740448da71cc08d91e7e1af1b42cc9e1 (patch) | |
tree | 8978d4314ce0148bfcbb18aa330ad9d9e64e2102 /mesonbuild/modules | |
parent | 3e917eba0e5aebb8e17bc210f99701f7012d1b53 (diff) | |
download | meson-863f2a6d740448da71cc08d91e7e1af1b42cc9e1.zip meson-863f2a6d740448da71cc08d91e7e1af1b42cc9e1.tar.gz meson-863f2a6d740448da71cc08d91e7e1af1b42cc9e1.tar.bz2 |
forbid using declare_dependency(objects: ...) with pkg-config module
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'mesonbuild/modules')
-rw-r--r-- | mesonbuild/modules/pkgconfig.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/modules/pkgconfig.py b/mesonbuild/modules/pkgconfig.py index d475618..ce90f2f 100644 --- a/mesonbuild/modules/pkgconfig.py +++ b/mesonbuild/modules/pkgconfig.py @@ -193,6 +193,8 @@ class DependenciesHelper: self.add_version_reqs(obj.name, obj.version_reqs) elif isinstance(obj, dependencies.InternalDependency): if obj.found(): + if obj.objects: + raise mesonlib.MesonException('.pc file cannot refer to individual object files.') processed_libs += obj.get_link_args() processed_cflags += obj.get_compile_args() self._add_lib_dependencies(obj.libraries, obj.whole_libraries, obj.ext_deps, public, private_external_deps=True) |