Link with libatomic.
authorPeter Michael Green <plugwash@raspbian.org>
Tue, 1 Feb 2022 19:32:25 +0000 (19:32 +0000)
committerRaspbian forward porter <root@raspbian.org>
Tue, 1 Feb 2022 19:32:25 +0000 (19:32 +0000)
Gbp-Pq: Name link-with-libatomic.patch

eeschema/CMakeLists.txt
kicad/CMakeLists.txt
qa/eeschema/CMakeLists.txt
qa/gerbview/CMakeLists.txt
qa/pcbnew/CMakeLists.txt
qa/pcbnew_tools/CMakeLists.txt

index 52a11230ba7e744cb8116c39b91a4e01f678f166..e6ccae44f3347450170ed9835d31bddf209c6078 100644 (file)
@@ -371,6 +371,7 @@ target_link_libraries( eeschema
     gal
     common
     ${wxWidgets_LIBRARIES}
+    -latomic
     )
 
 # the main Eeschema program, in DSO form.
index 04edf80fb3650fa3f877fd6f6f9b363f56b76264..a52b472dc35ac0f1af4db1d6f5c2664b58c5107a 100644 (file)
@@ -95,6 +95,7 @@ else()
         common      #repeated due to a circular dependency between gal and common
         ${wxWidgets_LIBRARIES}
         ${GDI_PLUS_LIBRARIES}
+        -latomic
         )
 endif()
 
index 6ddc16fed626e2d9850a2c3f523f14b481654896..eb1c8a706d7f37f498951a061819de803f042f43 100644 (file)
@@ -95,6 +95,7 @@ target_link_libraries( qa_eeschema
     markdown_lib
     ${GDI_PLUS_LIBRARIES}
     ${Boost_LIBRARIES}
+    atomic
 )
 
 target_include_directories( qa_eeschema PUBLIC
index c16ecfb2abdb02828439bfe52d0e4adecc42dd81..221a840a9ec2a4b8aa0491df213f00d4688c2e7f 100644 (file)
@@ -62,6 +62,7 @@ target_link_libraries( qa_gerbview
     ${PYTHON_LIBRARIES}
     ${Boost_LIBRARIES}      # must follow GITHUB
     ${PCBNEW_EXTRA_LIBS}    # -lrt must follow Boost
+    -latomic
 )
 
 kicad_add_boost_test( qa_gerbview qa_gerbview )
index dbebecf992d0707ec2f967f363ff95bd5f0099fa..908d40f70c71829fea868530ee684364bde20f4a 100644 (file)
@@ -107,6 +107,7 @@ target_link_libraries( qa_pcbnew
     ${PYTHON_LIBRARIES}
     ${Boost_LIBRARIES}
     ${PCBNEW_EXTRA_LIBS}    # -lrt must follow Boost
+    -latomic
 )
 
 if( WIN32 )
index c30dad905c63d44e8f3a6c9a5c7095df603c28a1..fd5ca7e677411364e106513d1c43201ac3359235 100644 (file)
@@ -61,6 +61,7 @@ target_link_libraries( qa_pcbnew_tools
     ${PYTHON_LIBRARIES}
     ${Boost_LIBRARIES}
     ${PCBNEW_EXTRA_LIBS}    # -lrt must follow Boost
+    -latomic
 )
 
 kicad_add_utils_executable( qa_pcbnew_tools )