Successfully builds boost with limited set of libraries

This commit is contained in:
Matt McWilliams 2022-07-22 10:45:57 -04:00
parent f376ca6402
commit 1e2497a5ca
1 changed files with 3 additions and 2 deletions

View File

@ -15,10 +15,11 @@ RUN DEBIAN_FRONTEND=noninteractive apt install -y bash \
RUN cd /opt && git clone https://github.com/boostorg/boost.git boost
RUN cd /opt/boost && git submodule update --init --recursive
RUN cd /opt/boost && ./bootstrap.sh
RUN cd /opt/boost && ./bootstrap.sh --with-libraries=system,date_time,filesystem,thread
RUN cd /opt/boost && ./b2 -j4 toolset=emscripten \
cflags="-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 \