aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/daemonize/files/fix-ldflags-for-gnuhash.patch
blob: 4fa2ee1b3b6af87f53877c1f7a431339848f2568 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Add the LDFLAGS to the final link to avoid errors with missing GNU_HASH

Upstream-Status: Submitted [https://github.com/bmc/daemonize/pull/22]

Signed-off-by: Derek Straka <derek@asterius.io>

diff --git a/Makefile.in b/Makefile.in
index 8a4d078..40d3dee 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -24,10 +24,10 @@ LDFLAGS		= @LDFLAGS@
 all: daemonize 
 
 daemonize: daemonize.o getopt.o $(MISSING_OBJECTS)
-	$(CC) $(CFLAGS) -o $@ $^
+	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
 
 testdaemon: testdaemon.o
-	$(CC) $(CFLAGS) -o $@ $^
+	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
  
 psman: daemonize.ps