Skip to content

Windows: missing ws2_32 when linking luasocket #1

Description

@pgagnidze

Building for Windows with luasocket fails:

lld-link: error: undefined symbol: __declspec(dllimport) send
lld-link: error: undefined symbol: __declspec(dllimport) recv
...

luasocket's rockspec already declares the dependency:

modules["socket.core"].libraries = { "ws2_32" }

luast needs to read this libraries field and pass -lws2_32 to the linker.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions