Compile boost

This commit is contained in:
mmcwilliams 2021-11-10 00:28:30 -05:00
parent 6bca130051
commit f22c904379
1 changed files with 4 additions and 14 deletions

View File

@ -12,24 +12,14 @@ RUN DEBIAN_FRONTEND=noninteractive apt install -y bash \
automake \ automake \
make make
RUN cd /opt && git clone https://github.com/boostorg/boost.git boost RUN cd /opt && wget https://github.com/boostorg/boost/archive/refs/tags/boost-1.37.0.tar.gz
RUN cd /opt/boost && git checkout tags/boost-1.37.0 RUN cd /opt && tar -xf boost-1.37.0.tar.gz
RUN cd /opt/boost && git submodule update --init --recursive
RUN mkdir -p /opt/libboost_build
RUN mkdir -p /opt/libboost RUN mkdir -p /opt/libboost
RUN cd /opt/boost && ls RUN cd /opt/boost-1.37.0 && emconfigure ./configure --prefix=/opt/libboost
RUN cd /opt/boost && ./bootstrap.sh --with-libraries=system,date_time,filesystem,thread
RUN cd /opt/boost && ./b2 -j4 toolset=emscripten \ RUN cd /opt/boost-1.37.0 && emmake make install -j CPPFLAGS="-s USE_PTHREADS=1" cxxflags="-s USE_PTHREADS=1"
cflags="-s USE_PTHREADS=1" cxxflags="-s USE_PTHREADS=1" \
--prefix=/opt/libboost \
--build-dir=/opt/libboost_build \
link=static \
variant=release \
threading=single \
runtime-link=static
WORKDIR /usr/src/ WORKDIR /usr/src/