Skip to content

Static build of loader broken due to addition of DllMain #269

@BtbN

Description

@BtbN

Commit c987c97 added a DllMain function, which is unconditionally added, even when OPENCL_ICD_LOADER_BUILD_SHARED_LIBS is off.
This leads to DllMain being part of the resulting static library, which then causes a linker error when trying to link it into another shared library, like FFmpeg in this case.

Defining a DllMain function should only happen when actually building a shared library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions