#!/usr/bin/make -f

# Workaround for RC bug #947718
# I worked on it on abel.debian.org, a porterbox
# for which I thank:
# - ARM Ltd for hosting
# - Marvell Technology Group Ltd for the hardware
ifneq (,$(findstring $(DEB_HOST_ARCH),armel mipsel m68k powerpc sh4))
export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed -latomic
else
export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed
endif

export DEB_CPPFLAGS_MAINT_APPEND= -D_LARGEFILE_SOURCE
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --disable-static

override_dh_installchangelogs:
	dh_installchangelogs NEWS
