From: IOhannes m zmölnig Date: Thu, 22 Aug 2019 08:00:50 +0000 (+0200) Subject: Mention that Debian's Projucer now adds required libraries in README.Debian X-Git-Tag: archive/raspbian/5.4.5_ds0-1+rpi1~1^2~14 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1895c7d443d66cf72f91b3c941eb8bd04702ffeb;p=juce.git Mention that Debian's Projucer now adds required libraries in README.Debian --- 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.