[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 02/02: t/tests/shared-libs-non-pic-i386: Pass -fno-PIE/-fno-pie to gcc



This is an automated email from the git hooks/post-receive script.

jwilk pushed a commit to branch master
in repository lintian.

commit 327335f279e2b0dcd7e7aae46ef874ec9dcb19fb
Author: Jakub Wilk <jwilk@debian.org>
Date:   Thu Oct 20 19:58:28 2016 +0200

    t/tests/shared-libs-non-pic-i386: Pass -fno-PIE/-fno-pie to gcc
    
    gcc-6 (>= 6.2.0-7) enables PIE by default.
    
    This test requires no PIC or PIE, so pass -fno-PIE and -fno-pie to
    the compiler to disable PIE explicitly.
---
 debian/changelog                                 | 4 ++++
 t/tests/shared-libs-non-pic-i386/debian/Makefile | 4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index e1207f5..6cdc043 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -42,6 +42,10 @@ lintian (2.5.49) UNRELEASED; urgency=medium
     + [NT] Add a "do_fork()" sub to ensure signal handling is
       reset for child processes.
 
+  * t/tests/shared-libs-non-pic-i386/debian/Makefile:
+    + [JW] Pass -fno-PIE and -fno-pie to GCC, so that the test works even
+      when the compiler enables PIE by default.  (Closes: #841442)
+
  -- Chris Lamb <lamby@debian.org>  Thu, 06 Oct 2016 19:04:23 +0100
 
 lintian (2.5.48) unstable; urgency=low
diff --git a/t/tests/shared-libs-non-pic-i386/debian/Makefile b/t/tests/shared-libs-non-pic-i386/debian/Makefile
index 5ccd2b8..c5ec48c 100644
--- a/t/tests/shared-libs-non-pic-i386/debian/Makefile
+++ b/t/tests/shared-libs-non-pic-i386/debian/Makefile
@@ -3,8 +3,8 @@ CC=gcc
 NOPICOBJS=non-pic.o
 SONAME:=libbaz3.so.1
 
-NOPIC_CFLAGS = $(filter-out -fPIE,$(CFLAGS))
-NOPIC_LDFLAGS = $(filter-out -fPIE -pie,$(LDFLAGS))
+NOPIC_CFLAGS = $(CFLAGS) -fno-PIE
+NOPIC_LDFLAGS = $(LDFLAGS) -fno-PIE -fno-pie
 
 all: libbaz3.so.1.0.3b
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: