File: add-latomic-linking.patch

package info (click to toggle)
ntirpc 1.4.4-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,464 kB
  • ctags: 7,239
  • sloc: ansic: 41,697; makefile: 22
file content (11 lines) | stat: -rw-r--r-- 349 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -33,7 +33,7 @@ else (USE_LIB64)
 		"Specify name of libdir inside install path")
 endif (USE_LIB64)
 
-set(SYSTEM_LIBRARIES ${SYSTEM_LIBRARIES})
+set(SYSTEM_LIBRARIES ${SYSTEM_LIBRARIES} -Wl,--as-needed -latomic)
 
 include(GetGitRevisionDescription)
 get_git_head_revision(GIT_REFSPEC _GIT_HEAD_COMMIT)