tunctl: 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>
This commit is contained in:
Yi Zhao 2016-11-01 17:23:05 +08:00 committed by Joe MacDonald
parent f08e9d4c7c
commit 294d7126ff
2 changed files with 22 additions and 1 deletions

View File

@ -3,7 +3,9 @@ SECTION = "net"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://tunctl.c;beginline=1;endline=4;md5=ff3a09996bc5fff6bc5d4e0b4c28f999"
SRC_URI = "${SOURCEFORGE_MIRROR}/tunctl/tunctl-${PV}.tar.gz"
SRC_URI = "${SOURCEFORGE_MIRROR}/tunctl/tunctl-${PV}.tar.gz \
file://makefile-add-ldflags.patch \
"
do_compile() {
oe_runmake tunctl

View File

@ -0,0 +1,19 @@
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 a0aa7f6..d6ce2c7 100644
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,7 @@ MAN_DIR ?= /usr/share/man/man$(MANS)
all : $(BIN) $(MAN)
$(BIN) : $(BIN).c
- $(CC) $(CFLAGS) -o $(BIN) $(BIN).c
+ $(CC) $(CFLAGS) ${LDFLAGS} -o $(BIN) $(BIN).c
$(MAN) : $(PACKAGE).sgml
docbook2man $(PACKAGE).sgml