[neon/qt/qt5webkit/Neon/release] debian: fix atomic link issue

Bo YU null at kde.org
Mon Oct 31 11:58:18 GMT 2022


Git commit 5fd1a936abad836b96dfe69a5a5bcf258c6a3084 by Bo YU.
Committed on 10/10/2022 at 15:25.
Pushed by jriddell into branch 'Neon/release'.

fix atomic link issue

Signed-off-by: Bo YU <tsu.yubo at gmail.com>

M  +3    -1    debian/rules

https://invent.kde.org/neon/qt/qt5webkit/commit/5fd1a936abad836b96dfe69a5a5bcf258c6a3084

diff --git a/debian/rules b/debian/rules
index 94ae851..3ee887b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -42,8 +42,10 @@ ifneq (,$(filter $(DEB_HOST_ARCH_CPU),ppc64el s390x))
 endif
 
 # webkit2gtk does a similar thing, see their prefer-pthread.patch
+# since glibc 2.34, the THREADS_PREFER_PTHREAD_FLAG flag in CMake does not work
+# to link atomic
 ifeq ($(DEB_HOST_ARCH),riscv64)
-	EXTRA_CMAKE_ARGUMENTS += -DTHREADS_PREFER_PTHREAD_FLAG=ON
+	export DEB_LDFLAGS_MAINT_APPEND += -Wl,--no-as-needed -latomic -Wl,--as-needed
 endif
 
 %:



More information about the Neon-commits mailing list