Enable all hardening flags
As described in https://wiki.debian.org/Hardening#Notes_for_packages_using_CMake
This commit is contained in:
parent
fe35ecf00d
commit
d6aacd5646
1
debian/control
vendored
1
debian/control
vendored
@ -7,6 +7,7 @@ Uploaders:
|
||||
Build-Depends:
|
||||
debhelper (>= 9),
|
||||
autotools-dev,
|
||||
dpkg-dev (>= 1.16.1.1),
|
||||
cmake,
|
||||
pkg-config,
|
||||
xmlto,
|
||||
|
||||
6
debian/rules
vendored
6
debian/rules
vendored
@ -1,5 +1,11 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
||||
DPKG_EXPORT_BUILDFLAGS = 1
|
||||
include /usr/share/dpkg/buildflags.mk
|
||||
CFLAGS+=$(CPPFLAGS)
|
||||
CXXFLAGS+=$(CPPFLAGS)
|
||||
|
||||
DEB_HOST_ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH)
|
||||
ifneq (,$(filter armhf,$(DEB_HOST_ARCH)))
|
||||
ARM_FLOAT_ABI = -DARM_FP_ABI=hard
|
||||
|
||||
Loading…
Reference in New Issue
Block a user