File: 0002-configure-handle-separate-latomic-library.patch

package info (click to toggle)
wxsvg 2%3A1.5.24%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,164 kB
  • sloc: cpp: 23,974; sh: 2,917; ansic: 872; makefile: 70; python: 31
file content (26 lines) | stat: -rw-r--r-- 836 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: Alec Leamas <leamas.alec@gmail.com>
Date: Thu, 30 Dec 2021 13:38:29 +0100
Subject: configure: handle separate -latomic library.

Handle sh4 build errors caused by missing -latomic.

Forwarded: https://sourceforge.net/p/wxsvg/git/merge-requests/4/
---
 configure.ac | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/configure.ac b/configure.ac
index b49be99..5150cd8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -137,6 +137,10 @@ LIBS="$LIBS $EXPAT_LIBS"
 # check libexif
 PKG_CHECK_MODULES(LIBEXIF, libexif, [LIBS="$LIBS $LIBEXIF_LIBS"], [AC_MSG_ERROR([*** missing libexif ***])])
 
+# check for separate -latomic
+AC_SEARCH_LIBS([__atomic_fetch_add_4], [atomic])
+AC_SEARCH_LIBS([__atomic_load_8], [atomic])
+
 # check ffmpeg
 AM_CONDITIONAL(USE_LIBAV, [test x$enable_libav = xyes])
 if test x$enable_libav = xyes; then