Add Bison-3.8.2

This commit is contained in:
Xavier Del Campo Romero 2023-12-21 22:30:07 +01:00
parent c033908560
commit b9ef0c163b
Signed by: xavi
GPG Key ID: 84FF3612A9BF43F2
1 changed files with 19 additions and 0 deletions

19
Bison/3.8.2/Dockerfile Normal file
View File

@ -0,0 +1,19 @@
FROM alpine
RUN apk update && apk add \
m4 \
make \
gcc \
musl-dev \
wget
RUN wget https://ftp.gnu.org/gnu/bison/bison-3.8.2.tar.gz
RUN tar -xf bison-3.8.2.tar.gz
WORKDIR /bison-3.8.2
ARG PREFIX=/opt/spm/bison-3.8.2
RUN ./configure \
--prefix=$PREFIX \
--disable-rpath \
--enable-relocatable \
--disable-nls \
CFLAGS='-ffunction-sections -fdata-sections -Os'
RUN make -j$(nproc --all)
RUN make install