File: add-latomic-linking.patch

package info (click to toggle)
ntirpc 4.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,116 kB
  • sloc: ansic: 32,323; makefile: 10
file content (11 lines) | stat: -rw-r--r-- 339 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -46,7 +46,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)
 set(BINARY_LIBRARIES ${BINARY_LIBRARIES})
 
 include(GetGitRevisionDescription)