--- /dev/null
+Description: Link juceaide against libatomic
+ build fixes on arm,mips,...
+Author: IOhannes m zmölnig
+Origin: Debian
+Forwarded: not-needed
+Last-Update: 2021-12-21
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: juce-6.1.3~ds0/extras/Build/juceaide/CMakeLists.txt
+===================================================================
+--- juce-6.1.3~ds0.orig/extras/Build/juceaide/CMakeLists.txt
++++ juce-6.1.3~ds0/extras/Build/juceaide/CMakeLists.txt
+@@ -32,12 +32,18 @@ if(JUCE_BUILD_HELPER_TOOLS)
+
+ target_sources(juceaide PRIVATE Main.cpp)
+
++ find_library(atomic "atomic")
++ if (atomic STREQUAL "atomic-NOTFOUND")
++ SET(atomic "")
++ endif()
++
+ target_compile_definitions(juceaide PRIVATE
+ JUCE_DISABLE_JUCE_VERSION_PRINTING=1
+ JUCE_USE_CURL=0)
+
+ target_link_libraries(juceaide PRIVATE
+ juce::juce_build_tools
++ ${atomic}
+ juce::juce_recommended_config_flags
+ juce::juce_recommended_lto_flags
+ juce::juce_recommended_warning_flags)