alarm/kodi-rpi: revert CFLAGS

This commit is contained in:
graysky 2021-11-10 15:35:43 -05:00
parent f35f257fc8
commit e1963b08ba

View file

@ -110,8 +110,7 @@ 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"
CFLAGS="-O2 -pipe -fno-plt"
CXXFLAGS="${CFLAGS}"
if [[ $CARCH = "armv7h" ]]; then
@ -121,9 +120,7 @@ build() {
export CFLAGS+=" -mcpu=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard"
export CXXFLAGS="${CFLAGS}"
elif [[ $CARCH = "aarch64" ]]; then
# note that linux-raspberrypi4 for aarch64 will currently NOT boot on RPi3 so we can use
# a value of cortex-a72 here although the ffmpeg patch is using cortex-a53
export CFLAGS+=" -mcpu=cortex-a72+crc"
export CFLAGS+=" -mcpu=cortex-a53"
export CXXFLAGS="${CFLAGS}"
fi