Add support for building on Apple Silicon

This commit is contained in:
Rui Marinho 2023-03-19 15:46:44 +00:00
parent 6da5bc0ef2
commit 394c813852

View File

@ -17,7 +17,11 @@ RUN mkdir -p ${BERKELEYDB_PREFIX}
WORKDIR /${BERKELEYDB_VERSION}/build_unix WORKDIR /${BERKELEYDB_VERSION}/build_unix
RUN ../dist/configure --enable-cxx --disable-shared --with-pic --prefix=${BERKELEYDB_PREFIX} RUN set -ex \
&& if [ "${TARGETPLATFORM}" = "linux/amd64" ]; then export TARGETPLATFORM=x86_64-unknown-linux-gnu; fi \
&& if [ "${TARGETPLATFORM}" = "linux/arm64" ]; then export TARGETPLATFORM=aarch64-unknown-linux-gnu; fi \
&& if [ "${TARGETPLATFORM}" = "linux/arm/v7" ]; then export TARGETPLATFORM=arm-unknown-linux-gnueabihf; fi \
&& ../dist/configure --enable-cxx --disable-shared --with-pic --prefix=${BERKELEYDB_PREFIX} --build=${TARGETPLATFORM}
RUN make -j4 RUN make -j4
RUN make install RUN make install
RUN rm -rf ${BERKELEYDB_PREFIX}/docs RUN rm -rf ${BERKELEYDB_PREFIX}/docs