File: add-latomic-linking-as-needed.patch

package info (click to toggle)
nfs-ganesha 2.7.1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 10,044 kB
  • sloc: ansic: 144,377; cpp: 6,985; perl: 4,985; python: 2,766; sh: 2,604; lex: 606; yacc: 411; makefile: 67; awk: 22; lisp: 20
file content (10 lines) | stat: -rw-r--r-- 249 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1040,6 +1040,7 @@ set(SYSTEM_LIBRARIES
   ${KRB5_LIBRARIES}
   ${CMAKE_THREAD_LIBS_INIT}
   ${LIBRT}
+  -Wl,--as-needed -latomic
 )
 
 # Config file; make sure it doesn't clobber an existing one