mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-09 00:17:31 +00:00
alarm/kodi-rpi to 20.5-3
Only build with LTO enabled for aarch64
This commit is contained in:
parent
40fce3eec6
commit
f06e1052d0
1 changed files with 4 additions and 3 deletions
|
@ -23,7 +23,7 @@ _commit=8ff17bbfc65c9b3c1923e85c4b40e5033aceebcc
|
|||
_clangbuild=
|
||||
|
||||
pkgver=20.5
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
arch=('aarch64' 'armv7h')
|
||||
url="https://github.com/graysky2/xbmc/tree/gs-gbm_nexus"
|
||||
license=('GPL2')
|
||||
|
@ -136,10 +136,12 @@ build() {
|
|||
# in a single package which is consistent with how LibreELEC is currently built, see:
|
||||
# https://github.com/LibreELEC/LibreELEC.tv/commit/8e6605f6da56f25a00272b1cbacb93d40200153f#commitcomment-46341034
|
||||
CFLAGS="-mcpu=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard"
|
||||
_args=(-DUSE_LTO=OFF)
|
||||
elif [[ $CARCH = "aarch64" ]]; then
|
||||
# note that we use a value of cortex-a53 here to allow RPi3 and RPi4 to use the same package
|
||||
# consistent with rationale of previous comment
|
||||
CFLAGS="-mcpu=cortex-a53"
|
||||
_args=(-DUSE_LTO=ON)
|
||||
fi
|
||||
|
||||
CFLAGS+=" -O2 -pipe -fstack-protector-strong -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection"
|
||||
|
@ -153,11 +155,10 @@ build() {
|
|||
#export DISTCC_HOSTS="localhost/5 10.0.1.103/5:3636"
|
||||
fi
|
||||
|
||||
_args=(
|
||||
_args+=(
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DCMAKE_INSTALL_PREFIX=/usr
|
||||
-DCMAKE_INSTALL_LIBDIR=/usr/lib
|
||||
-DUSE_LTO=ON
|
||||
-DVERBOSE=ON
|
||||
-DENABLE_LDGOLD=OFF
|
||||
-DENABLE_AIRTUNES=ON
|
||||
|
|
Loading…
Reference in a new issue