Add libevent-2.1.12

This commit is contained in:
Xavier Del Campo Romero 2023-12-21 22:57:05 +01:00
parent f406e681b9
commit 8e5defaf4b
Signed by: xavi
GPG Key ID: 84FF3612A9BF43F2
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
FROM alpine
RUN apk update && apk add \
make \
gcc \
musl-dev \
wget
COPY --from=libopenssl:3.1.1-minimal /opt/spm/openssl-3.1.1/ /usr/local/
RUN wget https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz
RUN tar -xf libevent-2.1.12-stable.tar.gz
WORKDIR /libevent-2.1.12-stable
ARG PREFIX=/opt/spm/libevent-2.1.12
RUN ./configure \
--prefix=$PREFIX \
--enable-shared=no \
CFLAGS='-ffunction-sections -fdata-sections -Os'
RUN make -j$(nproc --all)
RUN make install