diff --git a/scripts/1_Install_Dependencies.sh b/scripts/1_Install_Dependencies.sh index 2b5b01a..6f70169 100755 --- a/scripts/1_Install_Dependencies.sh +++ b/scripts/1_Install_Dependencies.sh @@ -51,10 +51,6 @@ _DEPENDENCIES="wget git xorg-server-xvfb \ printf "\nInstalling dependencies: $_DEPENDENCIES\n"; xbps-install -Sy $_DEPENDENCIES -if [[ "$(/lib/libc.so)" != *"musl libc"* ]]; then - xbps-install -y musl-devel -fi - ln -s /bin/clang /bin/cc mkdir /usr/lib/nodejs-mozilla/ ln -s /usr/bin/ /usr/lib/nodejs-mozilla/bin diff --git a/scripts/3_Configure_Source_Code.sh b/scripts/3_Configure_Source_Code.sh index 9d4699d..a0340d8 100755 --- a/scripts/3_Configure_Source_Code.sh +++ b/scripts/3_Configure_Source_Code.sh @@ -88,6 +88,11 @@ mk_add_options MOZ_TELEMETRY_REPORTING=0 # ac_add_options --enable-linker=gold END +if [[ "$(/lib/libc.so 2>&1)" != *"musl libc"* ]]; then + echo "ac_add_options --disable-jemalloc" >> ${CI_PROJECT_DIR}/mozconfig + echo "ac_add_options --disable-gold" >> ${CI_PROJECT_DIR}/mozconfig +fi + # allow setting limited resource usage via ENV / CI: if [[ ! -z ${CORES_TO_USE} ]]; then