Package: gnarwl / 3.6.dfsg-11

fln/0010-Fix-compilation-with-ld-as-needed.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From d1ad21f1257de161fc236f9adc53a2c8fb5eacbe Mon Sep 17 00:00:00 2001
From: Daniel Holbach <daniel.holbach@ubuntu.com>
Date: Sat, 1 Oct 2016 21:34:30 +0200
Subject: [PATCH] Fix compilation with ld --as-needed

Taken from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=689679
---
 src/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Makefile b/src/Makefile
index 8b0f1f7..5af7249 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -7,8 +7,8 @@ catch:
 all: clean compile
 
 compile: $(OBJ) $(SOBJ)
-	$(CC) $(CFLAGS) $(LFLAGS) -o $(BIN) gnarwl.c $(OBJ)
-	$(CC) $(CFLAGS) $(LFLAGS) -o $(SBIN) damnit.c $(SOBJ)
+	$(CC) $(CFLAGS) -o $(BIN) gnarwl.c $(OBJ) $(LFLAGS)
+	$(CC) $(CFLAGS) -o $(SBIN) damnit.c $(SOBJ) $(LFLAGS)
 
 clean:
 	rm -f DEADJOE *.o *~ $(BIN) $(SBIN)
-- 
2.9.3