summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/daemonize/files/fix-ldflags-for-gnuhash.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/daemonize/files/fix-ldflags-for-gnuhash.patch')
-rw-r--r--meta-oe/recipes-support/daemonize/files/fix-ldflags-for-gnuhash.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/daemonize/files/fix-ldflags-for-gnuhash.patch b/meta-oe/recipes-support/daemonize/files/fix-ldflags-for-gnuhash.patch
new file mode 100644
index 0000000000..4fa2ee1b3b
--- /dev/null
+++ b/meta-oe/recipes-support/daemonize/files/fix-ldflags-for-gnuhash.patch
@@ -0,0 +1,23 @@
1Add the LDFLAGS to the final link to avoid errors with missing GNU_HASH
2
3Upstream-Status: Submitted [https://github.com/bmc/daemonize/pull/22]
4
5Signed-off-by: Derek Straka <derek@asterius.io>
6
7diff --git a/Makefile.in b/Makefile.in
8index 8a4d078..40d3dee 100644
9--- a/Makefile.in
10+++ b/Makefile.in
11@@ -24,10 +24,10 @@ LDFLAGS = @LDFLAGS@
12 all: daemonize
13
14 daemonize: daemonize.o getopt.o $(MISSING_OBJECTS)
15- $(CC) $(CFLAGS) -o $@ $^
16+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
17
18 testdaemon: testdaemon.o
19- $(CC) $(CFLAGS) -o $@ $^
20+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
21
22 psman: daemonize.ps
23