From: IOhannes m zmölnig (Debian/GNU) Date: Thu, 16 Dec 2021 10:24:17 +0000 (+0100) Subject: use DEB_LDFLAGS_MAINT_APPEND directly X-Git-Tag: archive/raspbian/6.1.5_ds0-1+rpi1^2~39 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4999ca2c0324fc2f363a4d7e886d3d1cc26e6833;p=juce.git use DEB_LDFLAGS_MAINT_APPEND directly and export the DEB_*_MAINT_* --- diff --git a/debian/rules b/debian/rules index 379b001f..a546e644 100755 --- a/debian/rules +++ b/debian/rules @@ -3,6 +3,11 @@ # Copyright © 2015-2021 IOhannes m zmölnig # Description: Main Debian packaging script for JUCE +export DH_VERBOSE = 1 +export DEB_BUILD_MAINT_OPTIONS = hardening=+all +export DEB_CPPFLAGS_MAINT_APPEND = +export DEB_LDFLAGS_MAINT_APPEND = + DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/default.mk include /usr/share/dpkg/buildtools.mk @@ -16,8 +21,6 @@ DEB_COPYRIGHT_CHECK_IGNORE_REGEX = \ #DEB_COPYRIGHT_CHECK_IGNORE_REGEX = \ #^((.*\.jpg)|(.*\.JPG)|(.*\.gif)|(.*\.png)|(.*\.ico)|(.*\.icns)|(gradle-wrapper\.jar)|(.*\.mp3)|(.*\.caf)|(.*\.nib)|examples/InAppPurchase/Signing/InAppPurchase\.keystore|examples/(InAppPurchase/BinaryData/(Robot|Ed|Jules|JB|Fabian|Lukasz)[012]\.ogg|AUv3Synth|PlugInSamples/MultiOutSynth)/Source/BinaryData/singing\.ogg|examples/Demo/Resources/cello\.wav|examples/Demo/Resources/icons\.zip|modules/juce_audio_plugin_client/RTAS/juce_RTAS_WinResources\.rsr|examples/ComponentTutorialExample/Introduction to Components - Part 1\.pdf|debian/(changelog|copyright(|_hints|_newhints)))$ -LIBS = $(shell $(PKG_CONFIG) --libs libjpeg libpng zlib) - # JUCE uses some c++11 features requiring atomic_store_8 and # atomic_load_8, so we need to link with libatomic on # armel, powerpc, powerpcspe, m68k, mips, mipsel, sh4, ... @@ -28,12 +31,10 @@ LIBS = $(shell $(PKG_CONFIG) --libs libjpeg libpng zlib) noatomicarch = $(shell dpkg-architecture -qDEB_HOST_ARCH | egrep -x "(armel|powerpc|powerpcspe|m68k|mips|mipsel|sh4|riscv64)") # link with libatomic on architectures without built-in atomic ifeq ($(if $(noatomicarch),atomic), atomic) - LIBS += -latomic DEB_CPPFLAGS_MAINT_APPEND += -DDEBIAN_JUCERPROJECT_LIBS='\"atomic\"' + DEB_LDFLAGS_MAINT_APPEND += -latomic endif -DEB_LDFLAGS_MAINT_APPEND += $(LIBS) - # Debian's Projucer is GPL DEB_CPPFLAGS_MAINT_APPEND += -DJUCER_ENABLE_GPL_MODE=1