This commit is contained in:
amass 2025-05-02 21:25:08 +08:00
parent d1f78fa061
commit b3ede86557

View File

@ -48,7 +48,7 @@ RUN cd /root \
&& tar xvf boost_${BOOST_VERSION}.tar.gz > /dev/null \
&& cd /root/boost_${BOOST_VERSION} \
&& ./bootstrap.sh --prefix=/opt/Libraries/boost_${BOOST_VERSION} \
&& ./b2 install -q --prefix=/opt/Libraries/boost_${BOOST_VERSION} threading=multi link=shared runtime-link=shared variant=release cxxstd=17 cxxflags=-fPIC cflags=-fPIC \
&& ./b2 install -q --prefix=/opt/Libraries/boost_${BOOST_VERSION} threading=multi link=static runtime-link=shared variant=release cxxstd=17 cxxflags=-fPIC cflags=-fPIC \
&& rm -fr /root/boost_${BOOST_VERSION}* \
&& echo "export LD_LIBRARY_PATH=/opt/Libraries/boost_${BOOST_VERSION}/lib:$LD_LIBRARY_PATH" >> /etc/profile
ENV LD_LIBRARY_PATH=/opt/Libraries/boost_${BOOST_VERSION}/lib:$LD_LIBRARY_PATH