Mention that Debian's Projucer now adds required libraries in README.Debian
authorIOhannes m zmölnig <zmoelnig@umlautS.umlaeute.mur.at>
Thu, 22 Aug 2019 08:00:50 +0000 (10:00 +0200)
committerIOhannes m zmölnig <zmoelnig@umlautS.umlaeute.mur.at>
Thu, 22 Aug 2019 08:00:50 +0000 (10:00 +0200)
debian/README.Debian

index b200f392c2a26d0c7bf34267935ad5440ead81c1..94066309f6bc7b2b60fb5197fa8e8bd1ffd7acf8 100644 (file)
@@ -53,6 +53,25 @@ For further implementation details check out the 'iem-plugin-suite' package.
 
        make LDFLAGS="$(pkg-config --libs libpng libjpeg flac vorbis vorbisfile vorbisenc ogg zlib)"
 
+  *Alternatively*, resave the JUCE-project with the Debian-packaged 'Projucer'
+  (>=5.4.4~repack0-3) which will take care of adding these libraries (if
+  required) to the LinuxMakefile build.
+
+- When compiling for some embedded architectures (notably 'armel', 'mipsel' and
+  the like), you might need to link against '-latomic'.
+  The following snippet for d/rules can help inject the library on the required
+  architectures:
+
+        # link with libatomic on architectures without built-in atomic
+        noatomicarch = $(shell dpkg-architecture -qDEB_HOST_ARCH | egrep -x "(armel|powerpc|powerpcspe|m68k|mips|mipsel|sh4|riscv64)")
+        ifeq ($(if $(noatomicarch),atomic), atomic)
+                LDFLAGS += -latomic
+        endif
+
+  *Alternatively*, resave the JUCE-project with the Debian-packaged 'Projucer'
+  (>=5.4.4~repack0-3) which will take care of adding the relevant flags to the
+  LinuxMakefile build.
+
 - Also be aware, that Projucer generated makefiles usually include
   "-march=native", which is mostly not what you want for a generic baseline CPU
   build.