Pass "-latomic" via the LIBS
IOhannes m zmölnig
5 years ago
11 | 11 | |
12 | 12 | JUCE_VERSION := $(shell dpkg-query --show --showformat='$${source:Version}' juce-modules-source) |
13 | 13 | |
14 | CPPFLAGS+=-DBUILD_DATE='"$(BUILD_DATE)"' | |
15 | CXXFLAGS+=-std=c++11 -Wno-error | |
16 | LIBS=$(shell pkg-config --libs libjpeg libpng) | |
17 | ||
14 | 18 | # JUCE (used by giada) uses some c++11 features requiring atomic_store_8 and |
15 | 19 | # atomic_load_8, so we need to link with libatomic on |
16 | 20 | # armel, powerpc, powerpcspe, m68k, mips, mipsel, and sh4 |
21 | 25 | noatomicarch = $(shell dpkg-architecture -qDEB_HOST_ARCH | egrep -x "(armel|powerpc|powerpcspe|m68k|mips|mipsel|sh4)") |
22 | 26 | # link with libatomic on architectures without built-in atomic |
23 | 27 | ifeq ($(if $(noatomicarch),atomic), atomic) |
24 | DEB_LDFLAGS_MAINT_APPEND += -latomic | |
28 | LIBS += -latomic | |
25 | 29 | endif |
26 | ||
27 | CPPFLAGS+=-DBUILD_DATE='"$(BUILD_DATE)"' | |
28 | CXXFLAGS+=-std=c++11 -Wno-error | |
29 | 30 | |
30 | 31 | %: |
31 | 32 | dh $@ |
35 | 36 | --enable-vst \ |
36 | 37 | --enable-system-catch \ |
37 | 38 | --target=linux \ |
38 | LIBS="$(shell pkg-config --libs libjpeg libpng)" | |
39 | LIBS="$(LIBS)" | |
39 | 40 | |
40 | 41 | override_dh_auto_build: |
41 | 42 | cp -rav /usr/share/juce src/deps/ |