summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-09-27 07:48:44 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-09-27 07:48:44 +0000
commitd2eca97bdc0ff092c00e6825314478720fcdaab4 (patch)
treecac2331b178783cfa30d40437440936ca228ce73
parente6a7cf120611c3933dcd4bdf9820c8c4b1062497 (diff)
downloadpackages-d2eca97bdc0ff092c00e6825314478720fcdaab4.tar.gz
packages-d2eca97bdc0ff092c00e6825314478720fcdaab4.tar.bz2
packages-d2eca97bdc0ff092c00e6825314478720fcdaab4.tar.xz
packages-d2eca97bdc0ff092c00e6825314478720fcdaab4.zip
user/kdiff3: Fix build on PPC
-rw-r--r--user/kdiff3/APKBUILD5
1 files changed, 5 insertions, 0 deletions
diff --git a/user/kdiff3/APKBUILD b/user/kdiff3/APKBUILD
index e55724ca1..ff523e7ed 100644
--- a/user/kdiff3/APKBUILD
+++ b/user/kdiff3/APKBUILD
@@ -20,6 +20,11 @@ build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
+
+ case $CTARGET_ARCH in
+ ppc) export LDFLAGS="$LDFLAGS -Wl,--no-as-needed -latomic -Wl,--as-needed";;
+ esac
+
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \