summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2023-12-26 17:10:51 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2023-12-26 16:14:16 +0000
commitc0e187f08f439bb51cbc39c2a176e850c355aaba (patch)
tree53631823a3789619b5093adc73c2b540ac2d3fdd
parentcabb5f8ca04ae4c9090f9f0a2f0ac1663f9b3876 (diff)
downloadaports-c0e187f08f439bb51cbc39c2a176e850c355aaba.zip
community/freerdp: disable -flto for ppc64le
binutils ld is broken on ppc64le. disable LTO on ppc64le for now. ref: https://sourceware.org/bugzilla/show_bug.cgi?id=30824
-rw-r--r--community/freerdp/APKBUILD6
1 files changed, 5 insertions, 1 deletions
diff --git a/community/freerdp/APKBUILD b/community/freerdp/APKBUILD
index 30b3ef70386..14a08210a11 100644
--- a/community/freerdp/APKBUILD
+++ b/community/freerdp/APKBUILD
@@ -78,7 +78,11 @@ provides="freerdp-plugins=$pkgver-r$pkgrel"
# - CVE-2018-8789
build() {
- export CFLAGS="$CFLAGS -D_BSD_SOURCE -flto=auto"
+ export CFLAGS="$CFLAGS -D_BSD_SOURCE"
+ case "$CARCH" in
+ ppc64le) ;; # https://sourceware.org/bugzilla/show_bug.cgi?id=30824
+ *) CFLAGS="$CLFAGS -flto=auto";;
+ esac
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_INSTALL_PREFIX=/usr \