[lintian] 01/01: t: Replace ld with gcc -nostdlib
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit 3973a7455f12678c02e3445fed8315d4477dc73b
Author: Niels Thykier <niels@thykier.net>
Date: Sun Apr 13 18:32:48 2014 +0200
t: Replace ld with gcc -nostdlib
Also add some linker flags to make the test more resilient to changes
to linker defaults.
Signed-off-by: Niels Thykier <niels@thykier.net>
---
t/tests/binaries-libc-link/debian/Makefile | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/t/tests/binaries-libc-link/debian/Makefile b/t/tests/binaries-libc-link/debian/Makefile
index def6d3c..c9535b4 100644
--- a/t/tests/binaries-libc-link/debian/Makefile
+++ b/t/tests/binaries-libc-link/debian/Makefile
@@ -1,16 +1,18 @@
+LINKER_FLAGS := -Wl,--no-copy-dt-needed-entries,--no-as-needed
+
all: basic basic.1 libbasic-nodeps libbasic-nolibc
basic.1: basic.pod
pod2man --section 1 < $< > $@
basic: basic.o
- ld -o$@ $< -lm $(LFLAGS)
+ gcc -nostdlib -o$@ $< $(LINKER_FLAGS) -lm $(LFLAGS)
libbasic-nodeps: basic.o
- ld --shared -o$@ $<
+ gcc -nostdlib --shared -o$@ $<
libbasic-nolibc: basic.o
- ld --shared -o$@ $< -lm
+ gcc -nostdlib --shared -o$@ $< $(LINKER_FLAGS) -lm
install:
install -d $(DESTDIR)/usr/bin
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: