Skip to content
Commits on Source (2)
edfbrowser (1.66+dfsg-2) unstable; urgency=medium
* fix dh_auto_configure overriding (thanks for the patch to Pino Toscano)
Closes: #914937
-- Andreas Tille <tille@debian.org> Sat, 01 Dec 2018 07:17:28 +0100
edfbrowser (1.66+dfsg-1) unstable; urgency=medium
* New upstream version
......
......@@ -5,37 +5,19 @@
# export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE )
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE )
DEB_BUILD_ARCH_OS ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH_OS )
ARCH := $(shell dpkg-architecture -qDEB_BUILD_ARCH )
Q_LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed
export Q_LDFLAGS
# of course, qmake wants to do it its own way
QMAKE_CXXFLAGS += $(CPPFLAGS) -Wall -Wshadow -Wextra -ggdb3
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
QMAKE_CXXFLAGS_RELEASE = -O0
else
QMAKE_CXXFLAGS_RELEASE = -O2
endif
export DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed
export DEB_CXXFLAGS_MAINT_APPEND := -Wall -Wshadow -Wextra -ggdb3
export QT_SELECT=qt5
%:
dh $@
override_dh_auto_build:
qmake -makefile -after \
QMAKE_CXXFLAGS="$(QMAKE_CXXFLAGS)" \
QMAKE_CXXFLAGS_RELEASE="$(QMAKE_CXXFLAGS_RELEASE)" \
QMAKE_LFLAGS="$(Q_LDFLAGS)"
override_dh_auto_configure:
dh_auto_configure
# libpthread is only used indirectly; no need for linking against it
sed -i -e 's/-lpthread//' Makefile
$(MAKE)
override_dh_clean:
test ! -f Makefile || $(MAKE) distclean
dh_clean