[lintian] 01/01: Fix hardening test suite
This is an automated email from the git hooks/post-receive script.
broucaries-guest pushed a commit to branch master
in repository lintian.
commit 25c87a578dd49f7f08cbefbe7a18c68a04c299f0
Author: Bastien ROUCARIÈS <roucaries.bastien+debian@gmail.com>
Date: Tue Nov 8 12:39:34 2016 +0100
Fix hardening test suite
Use a weak compiler and a default compiler in order to use newer dpkg method
to inject flags by spec file.
Signed-off-by: Bastien ROUCARIÈS <roucaries.bastien+debian@gmail.com>
---
t/tests/binaries-hardening/debian/Makefile | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/t/tests/binaries-hardening/debian/Makefile b/t/tests/binaries-hardening/debian/Makefile
index e0884fd..f1e06f8 100644
--- a/t/tests/binaries-hardening/debian/Makefile
+++ b/t/tests/binaries-hardening/debian/Makefile
@@ -1,13 +1,13 @@
# turn off PIE in CC in case we have a PIEful toolchain:
-ifneq ($(findstring -no-pie,$(shell gcc -no-pie 2>&1)),)
- CC := gcc
+ifneq ($(findstring -no-pie,$(shell ${CC} -no-pie 2>&1)),)
+ CCWEAK := ${CC}
else
- CC := gcc -fno-pie -no-pie
+ CCWEAK := ${CC} -fno-pie -no-pie
endif
all: weak.1 strong.1
# Build without dpkg-buildflags.
- $(CC) -o weak -g \
+ $(CCWEAK) -o weak -g \
-fno-stack-protector \
-Wl,-z,norelro \
-U_FORTIFY_SOURCE \
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: