diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-02-23 10:38:34 -0800 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2021-06-07 20:05:11 +0530 |
commit | d031a684a689e29c1dbbf75ad36709171d56abdf (patch) | |
tree | 2e53b88ae479ec8e6a6b4f6a0e7f3e54532674f7 | |
parent | f4fc57ae730a0f9a5282566c68ef181d48049bf9 (diff) | |
download | meson-d031a684a689e29c1dbbf75ad36709171d56abdf.zip meson-d031a684a689e29c1dbbf75ad36709171d56abdf.tar.gz meson-d031a684a689e29c1dbbf75ad36709171d56abdf.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 fa07235..7dc7d06 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) |