Add support for building on Apple Silicon
This commit is contained in:
parent
6da5bc0ef2
commit
394c813852
@ -17,7 +17,11 @@ RUN mkdir -p ${BERKELEYDB_PREFIX}
|
||||
|
||||
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 install
|
||||
RUN rm -rf ${BERKELEYDB_PREFIX}/docs
|
||||
|
Loading…
Reference in New Issue
Block a user