Files
meta-openembedded/meta-networking/recipes-protocols/zeroconf/zeroconf/makefile-add-ldflags.patch
T
Yi Zhao 0a1144767a zeroconf: fix QA warning for GNU_HASH
Add LDFLAGS variable to Makefile so that extra linker flags can be sent
via this variable.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2016-11-14 13:01:11 -05:00

20 lines
460 B
Diff

Add LDFLAGS variable to Makefile, make sure the extra linker flags can be passed.
Upstream-Status: Pending
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
diff --git a/Makefile b/Makefile
index 77f3364..c98083f 100644
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,7 @@ clean:
zeroconf: zeroconf.o delay.o
$(Q)echo "Creating $@"
- $(Q)$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
+ $(Q)$(CC) $(CFLAGS) ${LDFLAGS} -o $@ $^ $(LIBS)
# Automatic dependency generation