fix some env vars for aarch64 builds
This commit is contained in:
parent
b4785c8efd
commit
c75783737f
22
PKGBUILD
22
PKGBUILD
|
@ -7,7 +7,7 @@ pkgname=librewolf
|
||||||
_pkgname=LibreWolf
|
_pkgname=LibreWolf
|
||||||
# how to get ci vars instead?
|
# how to get ci vars instead?
|
||||||
pkgver=74.0
|
pkgver=74.0
|
||||||
pkgrel=3
|
pkgrel=4
|
||||||
pkgdesc="Community-maintained fork of Firefox, focused on privacy, security and freedom."
|
pkgdesc="Community-maintained fork of Firefox, focused on privacy, security and freedom."
|
||||||
arch=(x86_64 aarch64)
|
arch=(x86_64 aarch64)
|
||||||
license=(MPL GPL LGPL)
|
license=(MPL GPL LGPL)
|
||||||
|
@ -102,25 +102,29 @@ if [[ $CARCH == 'aarch64' ]]; then
|
||||||
cat >>../mozconfig <<END
|
cat >>../mozconfig <<END
|
||||||
# taken from manjaro build:
|
# taken from manjaro build:
|
||||||
ac_add_options --enable-optimize="-g0 -O2"
|
ac_add_options --enable-optimize="-g0 -O2"
|
||||||
export MOZ_DEBUG_FLAGS=" "
|
|
||||||
export CFLAGS+=" -g0"
|
|
||||||
export CXXFLAGS+=" -g0"
|
|
||||||
export RUSTFLAGS="-Cdebuginfo=0"
|
|
||||||
|
|
||||||
# from ALARM
|
# from ALARM
|
||||||
# ac_add_options --disable-webrtc
|
# ac_add_options --disable-webrtc
|
||||||
|
|
||||||
END
|
END
|
||||||
|
|
||||||
# ac_add_options --enable-optimize <- ?
|
export MOZ_DEBUG_FLAGS=" "
|
||||||
|
export CFLAGS+=" -g0"
|
||||||
|
export CXXFLAGS+=" -g0"
|
||||||
|
export RUSTFLAGS="-Cdebuginfo=0"
|
||||||
|
|
||||||
LDFLAGS+=" -Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
|
export LDFLAGS+=" -Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
|
||||||
patch -p1 -i ../arm.patch
|
patch -p1 -i ../arm.patch
|
||||||
patch -p1 -i ../build-arm-libopus.patch
|
patch -p1 -i ../build-arm-libopus.patch
|
||||||
# do we need those for aarch64 as well?
|
# do we need those for aarch64 as well?
|
||||||
patch -p1 -i ../fix-armhf-webrtc-build.patch
|
patch -p1 -i ../fix-armhf-webrtc-build.patch
|
||||||
patch -p1 -i ../webrtc-fix-compiler-flags-for-armhf.patch
|
patch -p1 -i ../webrtc-fix-compiler-flags-for-armhf.patch
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
|
cat >>../mozconfig <<END
|
||||||
|
# probably not needed, enabled by default?
|
||||||
|
ac_add_options --enable-optimize
|
||||||
|
END
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Disabling Pocket
|
# Disabling Pocket
|
||||||
|
@ -243,7 +247,7 @@ END
|
||||||
local distini="$pkgdir/usr/lib/$pkgname/distribution/distribution.ini"
|
local distini="$pkgdir/usr/lib/$pkgname/distribution/distribution.ini"
|
||||||
install -Dvm644 /dev/stdin "$distini" <<END
|
install -Dvm644 /dev/stdin "$distini" <<END
|
||||||
[Global]
|
[Global]
|
||||||
id=io.gitlab.${pkgname}
|
id=io.gitlab.${_pkgname}
|
||||||
version=1.0
|
version=1.0
|
||||||
about=LibreWolf
|
about=LibreWolf
|
||||||
|
|
||||||
|
|
|
@ -76,10 +76,6 @@ if [[ $CARCH == 'aarch64' ]]; then
|
||||||
cat >>${CI_PROJECT_DIR}/mozconfig <<END
|
cat >>${CI_PROJECT_DIR}/mozconfig <<END
|
||||||
# taken from manjaro build:
|
# taken from manjaro build:
|
||||||
ac_add_options --enable-optimize="-g0 -O2"
|
ac_add_options --enable-optimize="-g0 -O2"
|
||||||
export MOZ_DEBUG_FLAGS=" "
|
|
||||||
export CFLAGS+=" -g0"
|
|
||||||
export CXXFLAGS+=" -g0"
|
|
||||||
export RUSTFLAGS="-Cdebuginfo=0"
|
|
||||||
|
|
||||||
# from ALARM
|
# from ALARM
|
||||||
# should only fail on armv7x
|
# should only fail on armv7x
|
||||||
|
@ -93,7 +89,12 @@ export RANLIB=llvm-ranlib-8
|
||||||
|
|
||||||
END
|
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
|
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
|
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
|
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 NM=llvm-nm-9
|
||||||
export RANLIB=llvm-ranlib-9
|
export RANLIB=llvm-ranlib-9
|
||||||
|
|
||||||
|
# probably not needed, enabled by default?
|
||||||
|
ac_add_options --enable-optimize
|
||||||
END
|
END
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -33,7 +33,11 @@ export MOZ_NOSPAM=1
|
||||||
export MOZBUILD_STATE_PATH="${_MOZBUILD}"
|
export MOZBUILD_STATE_PATH="${_MOZBUILD}"
|
||||||
|
|
||||||
if [[ $CARCH == 'aarch64' ]]; then
|
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
|
fi
|
||||||
|
|
||||||
# LTO needs more open files
|
# LTO needs more open files
|
||||||
|
|
Loading…
Reference in a new issue