From 1895c7d443d66cf72f91b3c941eb8bd04702ffeb Mon Sep 17 00:00:00 2001 From: =?utf8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Thu, 22 Aug 2019 10:00:50 +0200 Subject: [PATCH] Mention that Debian's Projucer now adds required libraries in README.Debian --- debian/README.Debian | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/debian/README.Debian b/debian/README.Debian index b200f392..94066309 100644 --- a/debian/README.Debian +++ b/debian/README.Debian @@ -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. -- 2.30.2