From 9a01eb28ed6c5d8e4b41111acfb61ac27ff959be Mon Sep 17 00:00:00 2001 From: John Date: Wed, 15 Feb 2023 11:48:11 +0100 Subject: [PATCH] syntax-highlighting: explicitly link against libatomic --- srcpkgs/syntax-highlighting/template | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/srcpkgs/syntax-highlighting/template b/srcpkgs/syntax-highlighting/template index 0d1d07d5825..e6b70b7e34b 100644 --- a/srcpkgs/syntax-highlighting/template +++ b/srcpkgs/syntax-highlighting/template @@ -6,7 +6,8 @@ build_style=cmake configure_args="-DKATEHIGHLIGHTINGINDEXER_EXECUTABLE=/usr/libexec/${pkgname}/katehighlightingindexer" hostmakedepends="kcoreaddons extra-cmake-modules perl qt5-host-tools qt5-qmake qt5-tools qt5-devel qt5-tools-devel" -makedepends="qt5-devel qt5-tools-devel qt5-xmlpatterns-devel" +makedepends="qt5-devel qt5-tools-devel qt5-xmlpatterns-devel + libatomic-devel" short_desc="Syntax highlighting engine for structured text and code" maintainer="John " license="LGPL-2.1-or-later" @@ -18,6 +19,10 @@ if [ "$CROSS_BUILD" ]; then hostmakedepends+=" syntax-highlighting" fi +if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then + configure_args+=" -DCMAKE_CXX_STANDARD_LIBRARIES=-latomic" +fi + post_install() { if [ -z "$CROSS_BUILD" ]; then # internal tool needed for cross-building