diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-02-23 10:38:34 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2021-05-17 15:21:27 -0700 |
commit | 11d123332d5242c419b4cc3ae0e0df4102ab189a (patch) | |
tree | 5b83094b3f0a9e0a769b86652b40bf784001f0ac | |
parent | be015a37d708135881743c2108fe4f35fdba7166 (diff) | |
download | meson-11d123332d5242c419b4cc3ae0e0df4102ab189a.zip meson-11d123332d5242c419b4cc3ae0e0df4102ab189a.tar.gz meson-11d123332d5242c419b4cc3ae0e0df4102ab189a.tar.bz2 |
ninjabackend: fix linking dynamic c libraries with rust
The correct name is "dylib" not "shared"
-rw-r--r-- | mesonbuild/backend/ninjabackend.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py index 05427d3..cd7f450 100644 --- a/mesonbuild/backend/ninjabackend.py +++ b/mesonbuild/backend/ninjabackend.py @@ -1610,7 +1610,7 @@ int dummy; args += ['--extern', '{}={}'.format(d.name, os.path.join(d.subdir, d.filename))] else: # Rust uses -l for non rust dependencies, but we still need to add (shared|static)=foo - _type = 'static' if d.typename == 'static library' else 'shared' + _type = 'static' if d.typename == 'static library' else 'dylib' args += ['-l', f'{_type}={d.name}'] if d.typename == 'static library': external_deps.extend(d.external_deps) |