Commit 8969b779 authored by Tzafrir Cohen's avatar Tzafrir Cohen

DEB_BUILD_MAINT_OPTIONS = hardening=+all

The rules Makefile needs extra convincing to use that value.
parent d698c9df
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
env_cmd = env DEB_BUILD_MAINT_OPTIONS=$(DEB_BUILD_MAINT_OPTIONS)
# := as there's no configure script in the middle right now and we want
# to see explicit flags in the build log.
CFLAGS := $(shell dpkg-buildflags --get CFLAGS)
CFLAGS += $(shell dpkg-buildflags --get CPPFLAGS)
LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
# env: export has no effect on $(shell)
CFLAGS := $(shell $(env_cmd) dpkg-buildflags --get CFLAGS)
CFLAGS += $(shell $(env_cmd) dpkg-buildflags --get CPPFLAGS)
LDFLAGS := $(shell $(env_cmd) dpkg-buildflags --get LDFLAGS)
export CFLAGS LDFLAGS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment