From 07fea5668f30e3690665f37f88931786fe53c18d Mon Sep 17 00:00:00 2001
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Tue, 15 Aug 2017 11:24:40 -0400
Subject: [PATCH] fix makefile for --Wl,--as-needed (addresses #872188)

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 356e30a..00695f1 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,7 @@ check: hddemux
 	./testsuite
 
 hddemux: hddemux.c
-	gcc $(CFLAGS) $(LDFLAGS) -std=c11 -pedantic -Wall -Werror -o $@ $<
+	gcc $(CFLAGS) $< $(LDFLAGS) -std=c11 -pedantic -Wall -Werror -o $@
 
 hddemux.1: hddemux.1.md
 	pandoc -s -f markdown -t man -o $@ $<
-- 
GitLab