Skip to content

Add musl support #7

Closed
Closed
@eriweb

Description

@eriweb

Currently building on alpine fails with:

/src/unit-0.1 # cc -Wl,-E  -o build/unitd -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werro
r -g   build/src/nxt_main.o  build/libnxt.a -lm -lrt -lpthread
build/libnxt.a(nxt_fiber.o): In function `nxt_fiber_switch_stack':
/src/unit-0.1/src/nxt_fiber.c:214: undefined reference to `getcontext'
/src/unit-0.1/src/nxt_fiber.c:223: undefined reference to `makecontext'
/src/unit-0.1/src/nxt_fiber.c:229: undefined reference to `setcontext'
collect2: error: ld returned 1 exit status

Presumably because getcontext/makecontext/setcontext are deprecated posix api's not implemented by musl.

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