/usr/lib/gcc/x86_64-alpine-linux-musl/9.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lsds
FROM alpine:latest
RUN apk update && \
apk add --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing \
check \
gcc \
git \
indent \
libsds-dev \
make \
musl-dev \
pandoc
WORKDIR /usr/src/package
COPY . /usr/src/package
RUN make && \
make install
gcc -fPIE -fno-stack-protector -Wall -Wextra -O2 -I./src -o package ./src/main.c -lsds
/usr/lib/gcc/x86_64-alpine-linux-musl/9.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lsds
collect2: error: ld returned 1 exit status
make: *** [Makefile:37: package] Error 1
Looks like it's missing the symlinks to libsds.so.2.0.0
, and libsds.so.2
, (See: https://pkgs.alpinelinux.org/contents?branch=edge&name=libsds-dev&arch=x86_64&repo=testing).
Edited by Lucas Ramage