Skip to content

Support object library #621

Closed
Closed
@0x1997

Description

I'm trying to embed a few dependencies into a shared library. It seems impossible to set compiler flags on a group of source files gathered by files(). But building static libraries of the dependencies with -fPIC and bundling them into the shared library with -Wl,--whole-archive or extract_all_objects seems inconvenient and a bit hacky.
I'd like to have an object library which is just a bunch of object files that I can set compiler flags as a group and add to any real executable or library target.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions