summaryrefslogtreecommitdiff
path: root/user/syntax-highlighting/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/syntax-highlighting/APKBUILD')
-rw-r--r--user/syntax-highlighting/APKBUILD5
1 files changed, 5 insertions, 0 deletions
diff --git a/user/syntax-highlighting/APKBUILD b/user/syntax-highlighting/APKBUILD
index 6f90e9587..e406af874 100644
--- a/user/syntax-highlighting/APKBUILD
+++ b/user/syntax-highlighting/APKBUILD
@@ -19,6 +19,11 @@ build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
+
+ case $CTARGET_ARCH in
+ ppc|espresso) LDFLAGS="$LDFLAGS -Wl,--no-as-needed -latomic -Wl,--as-needed";;
+ esac
+
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \