Codebase list giada / ccfe1d5
Pass "-latomic" via the LIBS IOhannes m zmölnig 5 years ago
1 changed file(s) with 6 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
1111
1212 JUCE_VERSION := $(shell dpkg-query --show --showformat='$${source:Version}' juce-modules-source)
1313
14 CPPFLAGS+=-DBUILD_DATE='"$(BUILD_DATE)"'
15 CXXFLAGS+=-std=c++11 -Wno-error
16 LIBS=$(shell pkg-config --libs libjpeg libpng)
17
1418 # JUCE (used by giada) uses some c++11 features requiring atomic_store_8 and
1519 # atomic_load_8, so we need to link with libatomic on
1620 # armel, powerpc, powerpcspe, m68k, mips, mipsel, and sh4
2125 noatomicarch = $(shell dpkg-architecture -qDEB_HOST_ARCH | egrep -x "(armel|powerpc|powerpcspe|m68k|mips|mipsel|sh4)")
2226 # link with libatomic on architectures without built-in atomic
2327 ifeq ($(if $(noatomicarch),atomic), atomic)
24 DEB_LDFLAGS_MAINT_APPEND += -latomic
28 LIBS += -latomic
2529 endif
26
27 CPPFLAGS+=-DBUILD_DATE='"$(BUILD_DATE)"'
28 CXXFLAGS+=-std=c++11 -Wno-error
2930
3031 %:
3132 dh $@
3536 --enable-vst \
3637 --enable-system-catch \
3738 --target=linux \
38 LIBS="$(shell pkg-config --libs libjpeg libpng)"
39 LIBS="$(LIBS)"
3940
4041 override_dh_auto_build:
4142 cp -rav /usr/share/juce src/deps/