mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-14 14:59:52 -04:00
chore: configure jemalloc max page size correctly
This commit is contained in:
parent
5434540e70
commit
137f352850
@ -252,6 +252,11 @@ for target_arch in ${TARGET_ARCH_STR//,/ }; do
|
|||||||
ppc64*) BOOST_CONTEXT_ARCH="ppc64" ;;
|
ppc64*) BOOST_CONTEXT_ARCH="ppc64" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
case "$CARCH" in
|
||||||
|
i386|x86_64) MAX_LG_PAGE_SIZE=12 ;;
|
||||||
|
*) MAX_LG_PAGE_SIZE=16 ;;
|
||||||
|
esac
|
||||||
|
|
||||||
export TARGET="${CARCH}-alpine-linux-musl"
|
export TARGET="${CARCH}-alpine-linux-musl"
|
||||||
|
|
||||||
case "$CARCH" in
|
case "$CARCH" in
|
||||||
@ -449,14 +454,16 @@ EOF
|
|||||||
./autogen.sh ${TRIPLETS}
|
./autogen.sh ${TRIPLETS}
|
||||||
mkdir build-minimal
|
mkdir build-minimal
|
||||||
cd build-minimal
|
cd build-minimal
|
||||||
../configure ${TRIPLETS} --prefix="$INSTALL_ROOT/$COMPILER-jemalloc-minimal/$TARGET" --localstatedir=/var --sysconfdir=/etc --with-lg-hugepage=21 \
|
../configure ${TRIPLETS} --prefix="$INSTALL_ROOT/$COMPILER-jemalloc-minimal/$TARGET" --localstatedir=/var \
|
||||||
|
--sysconfdir=/etc --with-lg-page=$MAX_LG_PAGE_SIZE --with-lg-hugepage=21 \
|
||||||
--disable-stats --disable-prof --enable-static --disable-shared --disable-log --disable-debug
|
--disable-stats --disable-prof --enable-static --disable-shared --disable-log --disable-debug
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
make install
|
make install
|
||||||
cd ..
|
cd ..
|
||||||
mkdir build-full
|
mkdir build-full
|
||||||
cd build-full
|
cd build-full
|
||||||
../configure ${TRIPLETS} --prefix="$INSTALL_ROOT/$COMPILER-jemalloc-full/$TARGET" --localstatedir=/var --sysconfdir=/etc --with-lg-hugepage=21 \
|
../configure ${TRIPLETS} --prefix="$INSTALL_ROOT/$COMPILER-jemalloc-full/$TARGET" --localstatedir=/var \
|
||||||
|
--sysconfdir=/etc --with-lg-page=$MAX_LG_PAGE_SIZE --with-lg-hugepage=21 \
|
||||||
--enable-stats --enable-prof --enable-static --disable-shared --disable-log --disable-debug
|
--enable-stats --enable-prof --enable-static --disable-shared --disable-log --disable-debug
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
make install
|
make install
|
||||||
|
Loading…
x
Reference in New Issue
Block a user