diff options
author | ohfp <1813007-ohfp@users.noreply.gitlab.com> | 2020-03-31 11:19:50 +0200 |
---|---|---|
committer | ohfp <1813007-ohfp@users.noreply.gitlab.com> | 2020-03-31 11:19:50 +0200 |
commit | c75783737fcf31f8026acc113dd5903c840e8da7 (patch) | |
tree | c830cf17a017c84e143455e8758fc03099975b7e /binary_tarball/scripts | |
parent | generate appstream metadata (diff) | |
download | librewolf-linux-c75783737fcf31f8026acc113dd5903c840e8da7.tar.gz librewolf-linux-c75783737fcf31f8026acc113dd5903c840e8da7.tar.bz2 librewolf-linux-c75783737fcf31f8026acc113dd5903c840e8da7.zip |
fix some env vars for aarch64 builds
Diffstat (limited to 'binary_tarball/scripts')
-rwxr-xr-x | binary_tarball/scripts/3_Configure_Source_Code.sh | 13 | ||||
-rwxr-xr-x | binary_tarball/scripts/4_Build_Binary_Tarball.sh | 6 |
2 files changed, 13 insertions, 6 deletions
diff --git a/binary_tarball/scripts/3_Configure_Source_Code.sh b/binary_tarball/scripts/3_Configure_Source_Code.sh index 8b0f256..fd5be09 100755 --- a/binary_tarball/scripts/3_Configure_Source_Code.sh +++ b/binary_tarball/scripts/3_Configure_Source_Code.sh @@ -76,10 +76,6 @@ if [[ $CARCH == 'aarch64' ]]; then cat >>${CI_PROJECT_DIR}/mozconfig <<END # taken from manjaro build: ac_add_options --enable-optimize="-g0 -O2" -export MOZ_DEBUG_FLAGS=" " -export CFLAGS+=" -g0" -export CXXFLAGS+=" -g0" -export RUSTFLAGS="-Cdebuginfo=0" # from ALARM # should only fail on armv7x @@ -93,7 +89,12 @@ export RANLIB=llvm-ranlib-8 END - LDFLAGS+=" -Wl,--no-keep-memory -Wl,--reduce-memory-overheads" + export MOZ_DEBUG_FLAGS=" " + export CFLAGS+=" -g0" + export CXXFLAGS+=" -g0" + export RUSTFLAGS="-Cdebuginfo=0" + + export LDFLAGS+=" -Wl,--no-keep-memory -Wl,--reduce-memory-overheads" patch -p1 -i ${CI_PROJECT_DIR}/arm.patch wget https://raw.githubusercontent.com/archlinuxarm/PKGBUILDs/master/extra/firefox/build-arm-libopus.patch -O ${CI_PROJECT_DIR}/build-arm-libopus.patch patch -p1 -i ${CI_PROJECT_DIR}/build-arm-libopus.patch @@ -112,6 +113,8 @@ export AR=llvm-ar-9 export NM=llvm-nm-9 export RANLIB=llvm-ranlib-9 +# probably not needed, enabled by default? +ac_add_options --enable-optimize END fi diff --git a/binary_tarball/scripts/4_Build_Binary_Tarball.sh b/binary_tarball/scripts/4_Build_Binary_Tarball.sh index 755bb1a..448bd80 100755 --- a/binary_tarball/scripts/4_Build_Binary_Tarball.sh +++ b/binary_tarball/scripts/4_Build_Binary_Tarball.sh @@ -33,7 +33,11 @@ export MOZ_NOSPAM=1 export MOZBUILD_STATE_PATH="${_MOZBUILD}" if [[ $CARCH == 'aarch64' ]]; then - LDFLAGS+=" -Wl,--no-keep-memory -Wl,--reduce-memory-overheads" + export MOZ_DEBUG_FLAGS=" " + export CFLAGS+=" -g0" + export CXXFLAGS+=" -g0" + export RUSTFLAGS="-Cdebuginfo=0" + export LDFLAGS+=" -Wl,--no-keep-memory -Wl,--reduce-memory-overheads" fi # LTO needs more open files |