REwork of Dockerfile to convert built boost .bc files to .a for (potentially) better linking in WASM (didn't work).

This commit is contained in:
Matt McWilliams 2022-07-22 11:49:51 -04:00
parent b76765b10d
commit a89d38abe3
2 changed files with 13 additions and 3 deletions

View File

@ -27,7 +27,17 @@ RUN cd /opt/boost && ./b2 -j4 toolset=emscripten \
threading=single \
runtime-link=static
WORKDIR /opt/boost/stage/lib/
RUN emar q libboost_atomic.a libboost_atomic.bc
RUN emar q libboost_date_time.a libboost_date_time.bc
RUN emar q libboost_filesystem.a libboost_filesystem.bc
RUN emar q libboost_system.a libboost_system.bc
RUN emar q libboost_thread.a libboost_thread.bc
WORKDIR /usr/src/
ENV POVRAY_VERSION=3.7-stable
RUN cd /usr/src/ && git clone --depth 1 --branch $POVRAY_VERSION https://github.com/POV-Ray/povray povray
WORKDIR /usr/src/povray

View File

@ -3,4 +3,4 @@
sudo docker run \
-v $PWD/compile_povray_wasm.sh:/usr/src/povray/compile_povray_wasm.sh \
povray_wasm \
sh -c 'cd /usr/src/povray && bash compile_povray_wasm.sh'
sh -c 'bash compile_povray_wasm.sh'