mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-17 23:34:07 +00:00
alarm/kodi-rpi: fix assignment of *FLAGS
This commit is contained in:
parent
a9cd4e6433
commit
f88534895c
1 changed files with 5 additions and 7 deletions
|
@ -116,22 +116,20 @@ build() {
|
|||
# uses here so unset them and redefine below
|
||||
unset CFLAGS CXXFLAGS
|
||||
|
||||
CFLAGS="-O2 -pipe -fstack-protector-strong -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection"
|
||||
CXXFLAGS="${CFLAGS} -Wp,-D_GLIBCXX_ASSERTIONS"
|
||||
|
||||
if [[ $CARCH = "armv7h" ]]; then
|
||||
# we use -mcpu=cortex-a53 rather than cortex-a72 to maximize RPi 3B and RPi 4B/400 compatibility
|
||||
# in a single package which is consistent with how LibreELEC is currently built, see:
|
||||
# https://github.com/LibreELEC/LibreELEC.tv/commit/8e6605f6da56f25a00272b1cbacb93d40200153f#commitcomment-46341034
|
||||
export CFLAGS+=" -mcpu=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard"
|
||||
export CXXFLAGS="${CFLAGS}"
|
||||
CFLAGS="-mcpu=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard"
|
||||
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
|
||||
export CFLAGS+=" -mcpu=cortex-a53"
|
||||
export CXXFLAGS="${CFLAGS}"
|
||||
CFLAGS="-mcpu=cortex-a53"
|
||||
fi
|
||||
|
||||
export CFLAGS+=" -O2 -pipe -fstack-protector-strong -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection"
|
||||
export CXXFLAGS+="${CFLAGS} -Wp,-D_GLIBCXX_ASSERTIONS"
|
||||
|
||||
_args=(
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DCMAKE_INSTALL_PREFIX=/usr
|
||||
|
|
Loading…
Reference in a new issue