#!/usr/bin/make -f # Uncomment below to enable verbose build messages. #export DH_VERBOSE = 1 # Enable all build hardening flags. export DEB_BUILD_MAINT_OPTIONS = hardening=+all # Export the DPKG default build flags. DPKG_EXPORT_BUILDFLAGS = 1 # Include the default build flags. include /usr/share/dpkg/buildflags.mk # Append the CPPFLAGS to the standard CFLAGS and CXXFLAGS variables, which is how CMake likes it. # These are currently required or -D_FORTIFY_SOURCE=2 is not correctly passed to generate_translations_header.c. CFLAGS += $(CPPFLAGS) CXXFLAGS += $(CPPFLAGS) %: dh $@ override_dh_auto_configure: # Build with the default DARCH. Otherwise, the monero code will be optimized for the build environment, but may produce errors in other environments. # Disable AES (maes) on all architectures (it is already disabled for some architectures in the upstream code), as this is not part of the AMD64 baseline. dh_auto_configure -- -DARCH=default -DNO_AES=ON