Skip to content

Way to set shared library filename #2231

@daurnimator

Description

@daurnimator

When creating a shared library for use as a plugin in existing programs/languages, you often need to follow certain naming conventions, e.g. myprogram-plugin-b.so.

I can't seem to find a way to set the output filename from zig build-lib -dynamic. It seems to come out as libNAME.so.x.y.z where NAME can be set with --name and x/y/z can come from the --ver flags.

Possibly related to #2230

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedThis proposal is planned.contributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.proposalThis issue suggests modifications. If it also has the "accepted" label then it is planned.zig build systemstd.Build, the build runner, `zig build` subcommand, package management

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions