diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2023-12-26 17:10:51 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2023-12-26 16:14:16 +0000 |
commit | c0e187f08f439bb51cbc39c2a176e850c355aaba (patch) | |
tree | 53631823a3789619b5093adc73c2b540ac2d3fdd /community/freerdp/APKBUILD | |
parent | cabb5f8ca04ae4c9090f9f0a2f0ac1663f9b3876 (diff) | |
download | aports-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
Diffstat (limited to 'community/freerdp/APKBUILD')
-rw-r--r-- | community/freerdp/APKBUILD | 6 |
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 \ |