File 0004-Fix-linker-cmdline-to-make-linking-with-asneeded-wor.patch of Package u2f-utils

From 835d27db8d411463ab21f5fd27b7ad92014a72f6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcus=20R=C3=BCckert?= <darix@nordisch.org>
Date: Mon, 19 Jan 2015 15:54:26 +0100
Subject: [PATCH 4/5] Fix linker cmdline to make linking with "asneeded" work

---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index be068f1..cf29e30 100644
--- a/Makefile
+++ b/Makefile
@@ -55,10 +55,10 @@ sign.o: sign.cc
 	$(CXX) $(CFLAGS) $<
 
 u2f-enroll: enroll.o u2f_util.o
-	$(CXX) $(LDFLAGS) -lrt -ludev $(HIDAPI_LIBS) -o $@ $^
+	$(CXX) -o $@ $^ $(LDFLAGS) -lrt -ludev $(HIDAPI_LIBS)
 
 u2f-sign: sign.o u2f_util.o
-	$(CXX) $(LDFLAGS) -lrt -ludev $(HIDAPI_LIBS) -o $@ $^
+	$(CXX) -o $@ $^ $(LDFLAGS) -lrt -ludev $(HIDAPI_LIBS)
 
 
 install:
-- 
2.1.2

openSUSE Build Service is sponsored by