Add patch to link juceaide against libatomic
authorIOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>
Tue, 21 Dec 2021 15:16:45 +0000 (16:16 +0100)
committerIOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>
Tue, 21 Dec 2021 15:27:03 +0000 (16:27 +0100)
Should fix FTBFS on arm,mips,...

debian/patches/debian_juceaide_atomic.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/debian_juceaide_atomic.patch b/debian/patches/debian_juceaide_atomic.patch
new file mode 100644 (file)
index 0000000..39849e8
--- /dev/null
@@ -0,0 +1,31 @@
+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)
index 15858140b18817488f8204cfbaed38368cdd0731..06e07c6ce112eb1ef4b452071f9798d82e255c83 100644 (file)
@@ -10,3 +10,4 @@ cross.patch
 debian_buildcmake.patch
 overridable_pkg-config.patch
 debian_cmake.patch
+debian_juceaide_atomic.patch