Skip to content
Snippets Groups Projects
Commit 1f7f2896 authored by dkg's avatar dkg
Browse files

link only as needed

parent bed60eb6
No related branches found
No related tags found
No related merge requests found
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Mon, 7 Jan 2019 16:43:41 -0500
Subject: link only as needed
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index e96b6c2..610d25d 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,7 @@ check: hddemux
PATH=.:$$PATH ./testsuite
hddemux: hddemux.c
- gcc $(CPPFLAGS) $(CFLAGS) $< $(LDFLAGS) -std=c11 -pedantic -Wall -Werror -o $@
+ gcc $(CPPFLAGS) $(CFLAGS) $< -Wl,--as-needed $(LDFLAGS) -std=c11 -pedantic -Wall -Werror -o $@
hddemux.1: hddemux.1.md
pandoc -s -f markdown -t man -o $@ $<
......@@ -5,3 +5,4 @@
0005-testsuite-handle-other-nginx-temp_path-vars.patch
0006-testsuite-send-expected-stderr-to-stdout.patch
0007-testsuite-Unset-https_proxy-and-http_proxy.patch
0008-link-only-as-needed.patch
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment