File: link_atomic.patch

package info (click to toggle)
google-glog 0.6.0-3
  • links: PTS
  • area: main
  • in suites: sid
  • size: 1,336 kB
  • sloc: cpp: 9,590; sh: 141; ansic: 115; makefile: 47
file content (21 lines) | stat: -rw-r--r-- 567 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: link with atomic if it's found
 Some architectures need to link explicitly with atomic.
Author: Laszlo Boszormenyi (GCS) <gcs@debian.org>
Forwarded: no
Last-Update: 2022-03-06

---

--- google-glog-0.6.0~rc1.orig/CMakeLists.txt
+++ google-glog-0.6.0~rc1/CMakeLists.txt
@@ -746,6 +746,10 @@ if (BUILD_TESTING)
     list (APPEND _GLOG_TEST_LIBS GTest::gmock)
   endif (HAVE_LIB_GMOCK)
 
+  if (HAVE_CXX11_ATOMIC)
+    list (APPEND _GLOG_TEST_LIBS atomic)
+  endif (HAVE_CXX11_ATOMIC)
+
   add_executable (logging_unittest
     src/logging_unittest.cc
   )