cargo-c defaults to static for musl otherwise diff --git a/cargo_wrapper.py b/cargo_wrapper.py index e04ad39..e7b3e03 100644 --- a/cargo_wrapper.py +++ b/cargo_wrapper.py @@ -89,6 +89,7 @@ if __name__ == "__main__": cargo_cmd += ['build'] else: cargo_cmd += ['cbuild'] + cargo_cmd += ['--library-type=cdylib'] if not opts.disable_doc: features += ['doc'] if opts.target == 'release':