* [meta-networking][PATCH 1/6] aoetools: fix QA warning for GNU_HASH
2016-11-01 9:22 [meta-networking][PATCH 0/6] fix GNU_HASH QA warnings Yi Zhao
@ 2016-11-01 9:23 ` Yi Zhao
2016-11-01 9:23 ` [meta-networking][PATCH 2/6] nuttcp: " Yi Zhao
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Yi Zhao @ 2016-11-01 9:23 UTC (permalink / raw)
To: openembedded-devel
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>
---
.../aoetools/aoetools/makefile-add-ldflags.patch | 31 ++++++++++++++++++++++
.../recipes-support/aoetools/aoetools_36.bb | 1 +
2 files changed, 32 insertions(+)
create mode 100644 meta-networking/recipes-support/aoetools/aoetools/makefile-add-ldflags.patch
diff --git a/meta-networking/recipes-support/aoetools/aoetools/makefile-add-ldflags.patch b/meta-networking/recipes-support/aoetools/aoetools/makefile-add-ldflags.patch
new file mode 100644
index 0000000..726d8c5
--- /dev/null
+++ b/meta-networking/recipes-support/aoetools/aoetools/makefile-add-ldflags.patch
@@ -0,0 +1,31 @@
+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 0c56ade..79f2e2b 100644
+--- a/Makefile
++++ b/Makefile
+@@ -68,17 +68,17 @@ clean :
+ rm -f ${CONF_SCRIPTS} ${AOE_PING_OBJ} ${AOE_CFG_OBJ} ${SANCHECK_OBJ} ${PROGS}
+
+ aoeping : ${AOE_PING_OBJ}
+- ${CC} ${CFLAGS} -o $@ ${AOE_PING_OBJ}
++ ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${AOE_PING_OBJ}
+ aoeping.o : aoeping.c dat.h fns.h
+ ${CC} ${CFLAGS} -o $@ -c $<
+ linux.o : linux.c config.h
+ ${CC} ${CFLAGS} -o $@ -c $<
+ aoecfg: ${AOE_CFG_OBJ}
+- ${CC} ${CFLAGS} -o $@ ${AOE_CFG_OBJ}
++ ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${AOE_CFG_OBJ}
+ aoecfg.o : aoecfg.c dat.h fns.h
+ ${CC} ${CFLAGS} -o $@ -c $<
+ aoe-sancheck : ${SANCHECK_OBJ}
+- -$(CC) $(CFLAGS) -o $@ ${SANCHECK_OBJ} $(SANCHECKLIBS)
++ -$(CC) $(CFLAGS) ${LDFLAGS} -o $@ ${SANCHECK_OBJ} $(SANCHECKLIBS)
+ aoe-sancheck.o : aoe-sancheck.c
+ -$(CC) $(CFLAGS) -o $@ -c $<
+
diff --git a/meta-networking/recipes-support/aoetools/aoetools_36.bb b/meta-networking/recipes-support/aoetools/aoetools_36.bb
index c382a71..9b73b44 100644
--- a/meta-networking/recipes-support/aoetools/aoetools_36.bb
+++ b/meta-networking/recipes-support/aoetools/aoetools_36.bb
@@ -12,6 +12,7 @@ RRECOMMENDS_${PN} = "kernel-module-aoe"
SRC_URI = "http://sourceforge.net/projects/${BPN}/files/${BPN}/${BPN}-${PV}.tar.gz \
file://aoe-stat-no-bashism.patch \
+ file://makefile-add-ldflags.patch \
"
SRC_URI[md5sum] = "bff30daa988a65f69d4448ce4726a6db"
SRC_URI[sha256sum] = "fb5e2cd0de7644cc1ec04ee3aeb43211cf7445a0c19e13d6b3ed5a8fbdf215ff"
--
2.7.4
^ permalink raw reply related [flat|nested] 7+ messages in thread* [meta-networking][PATCH 2/6] nuttcp: fix QA warning for GNU_HASH
2016-11-01 9:22 [meta-networking][PATCH 0/6] fix GNU_HASH QA warnings Yi Zhao
2016-11-01 9:23 ` [meta-networking][PATCH 1/6] aoetools: fix QA warning for GNU_HASH Yi Zhao
@ 2016-11-01 9:23 ` Yi Zhao
2016-11-01 9:23 ` [meta-networking][PATCH 3/6] zeroconf: " Yi Zhao
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Yi Zhao @ 2016-11-01 9:23 UTC (permalink / raw)
To: openembedded-devel
Set LDFLAGS explicitly for do_compile
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
meta-networking/recipes-support/nuttcp/nuttcp_7.2.1.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta-networking/recipes-support/nuttcp/nuttcp_7.2.1.bb b/meta-networking/recipes-support/nuttcp/nuttcp_7.2.1.bb
index 7f666fb..9430add 100644
--- a/meta-networking/recipes-support/nuttcp/nuttcp_7.2.1.bb
+++ b/meta-networking/recipes-support/nuttcp/nuttcp_7.2.1.bb
@@ -20,7 +20,7 @@ SRC_URI[sha256sum] = "c6e33810ccce67260f8d5d627f60e429d44f532365c58ed5673d035e2a
S = "${WORKDIR}"
do_compile () {
- ${CC} ${CFLAGS} -o nuttcp nuttcp-${PV}.c
+ ${CC} ${CFLAGS} ${LDFLAGS} -o nuttcp nuttcp-${PV}.c
}
do_install () {
--
2.7.4
^ permalink raw reply related [flat|nested] 7+ messages in thread* [meta-networking][PATCH 3/6] zeroconf: fix QA warning for GNU_HASH
2016-11-01 9:22 [meta-networking][PATCH 0/6] fix GNU_HASH QA warnings Yi Zhao
2016-11-01 9:23 ` [meta-networking][PATCH 1/6] aoetools: fix QA warning for GNU_HASH Yi Zhao
2016-11-01 9:23 ` [meta-networking][PATCH 2/6] nuttcp: " Yi Zhao
@ 2016-11-01 9:23 ` Yi Zhao
2016-11-01 9:23 ` [meta-networking][PATCH 4/6] tsocks: " Yi Zhao
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Yi Zhao @ 2016-11-01 9:23 UTC (permalink / raw)
To: openembedded-devel
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>
---
.../zeroconf/zeroconf/makefile-add-ldflags.patch | 19 +++++++++++++++++++
.../recipes-protocols/zeroconf/zeroconf_0.9.bb | 1 +
2 files changed, 20 insertions(+)
create mode 100644 meta-networking/recipes-protocols/zeroconf/zeroconf/makefile-add-ldflags.patch
diff --git a/meta-networking/recipes-protocols/zeroconf/zeroconf/makefile-add-ldflags.patch b/meta-networking/recipes-protocols/zeroconf/zeroconf/makefile-add-ldflags.patch
new file mode 100644
index 0000000..c5a4414
--- /dev/null
+++ b/meta-networking/recipes-protocols/zeroconf/zeroconf/makefile-add-ldflags.patch
@@ -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 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
diff --git a/meta-networking/recipes-protocols/zeroconf/zeroconf_0.9.bb b/meta-networking/recipes-protocols/zeroconf/zeroconf_0.9.bb
index 9307263..13f9b9b 100644
--- a/meta-networking/recipes-protocols/zeroconf/zeroconf_0.9.bb
+++ b/meta-networking/recipes-protocols/zeroconf/zeroconf_0.9.bb
@@ -18,6 +18,7 @@ PR = "r1"
SRC_URI = "http://www.progsoc.org/~wildfire/zeroconf/download/${BPN}-${PV}.tar.gz \
file://compilefix.patch \
+ file://makefile-add-ldflags.patch \
file://zeroconf-default \
file://debian-zeroconf"
--
2.7.4
^ permalink raw reply related [flat|nested] 7+ messages in thread* [meta-networking][PATCH 4/6] tsocks: fix QA warning for GNU_HASH
2016-11-01 9:22 [meta-networking][PATCH 0/6] fix GNU_HASH QA warnings Yi Zhao
` (2 preceding siblings ...)
2016-11-01 9:23 ` [meta-networking][PATCH 3/6] zeroconf: " Yi Zhao
@ 2016-11-01 9:23 ` Yi Zhao
2016-11-01 9:23 ` [meta-networking][PATCH 5/6] vblade: " Yi Zhao
2016-11-01 9:23 ` [meta-networking][PATCH 6/6] tunctl: " Yi Zhao
5 siblings, 0 replies; 7+ messages in thread
From: Yi Zhao @ 2016-11-01 9:23 UTC (permalink / raw)
To: openembedded-devel
Add LDFLAGS variable to Makefile.in so that extra linker flags can be sent
via this variable.
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
.../tsocks/tsocks/makefile-add-ldflags.patch | 19 +++++++++++++++++++
.../recipes-protocols/tsocks/tsocks_1.8beta5.bb | 4 +++-
2 files changed, 22 insertions(+), 1 deletion(-)
create mode 100644 meta-networking/recipes-protocols/tsocks/tsocks/makefile-add-ldflags.patch
diff --git a/meta-networking/recipes-protocols/tsocks/tsocks/makefile-add-ldflags.patch b/meta-networking/recipes-protocols/tsocks/tsocks/makefile-add-ldflags.patch
new file mode 100644
index 0000000..2146418
--- /dev/null
+++ b/meta-networking/recipes-protocols/tsocks/tsocks/makefile-add-ldflags.patch
@@ -0,0 +1,19 @@
+Add LDFLAGS variable to Makefile.in, 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.in b/Makefile.in
+index cad6706..0ed55c5 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -50,7 +50,7 @@ ${SAVE}: ${SAVE}.c
+ ${SHCC} ${CFLAGS} ${INCLUDES} -static -o ${SAVE} ${SAVE}.c
+
+ ${SHLIB}: ${OBJS} ${COMMON}.o ${PARSER}.o
+- ${SHCC} ${CFLAGS} ${INCLUDES} -nostdlib -shared -o ${SHLIB} ${OBJS} ${COMMON}.o ${PARSER}.o ${DYNLIB_FLAGS} ${SPECIALLIBS} ${LIBS}
++ ${SHCC} ${CFLAGS} ${LDFLAGS} ${INCLUDES} -nostdlib -shared -o ${SHLIB} ${OBJS} ${COMMON}.o ${PARSER}.o ${DYNLIB_FLAGS} ${SPECIALLIBS} ${LIBS}
+ ln -sf ${SHLIB} ${LIB_NAME}.so
+
+ %.so: %.c
diff --git a/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb b/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb
index b3a9620..22287ce 100644
--- a/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb
+++ b/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb
@@ -9,7 +9,9 @@ SECTION = "net"
LICENSE = "GPL-2.0"
LIC_FILES_CHKSUM = "file://COPYING;md5=18810669f13b87348459e611d31ab760"
-SRC_URI = "http://downloads.sourceforge.net/tsocks/tsocks-${PV}.tar.gz"
+SRC_URI = "http://downloads.sourceforge.net/tsocks/tsocks-${PV}.tar.gz \
+ file://makefile-add-ldflags.patch \
+ "
SRC_URI[md5sum] = "51caefd77e5d440d0bbd6443db4fc0f8"
SRC_URI[sha256sum] = "849d7ef5af80d03e76cc05ed9fb8fa2bcc2b724b51ebfd1b6be11c7863f5b347"
--
2.7.4
^ permalink raw reply related [flat|nested] 7+ messages in thread* [meta-networking][PATCH 5/6] vblade: fix QA warning for GNU_HASH
2016-11-01 9:22 [meta-networking][PATCH 0/6] fix GNU_HASH QA warnings Yi Zhao
` (3 preceding siblings ...)
2016-11-01 9:23 ` [meta-networking][PATCH 4/6] tsocks: " Yi Zhao
@ 2016-11-01 9:23 ` Yi Zhao
2016-11-01 9:23 ` [meta-networking][PATCH 6/6] tunctl: " Yi Zhao
5 siblings, 0 replies; 7+ messages in thread
From: Yi Zhao @ 2016-11-01 9:23 UTC (permalink / raw)
To: openembedded-devel
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>
---
.../vblade/files/makefile-add-ldflags.patch | 19 +++++++++++++++++++
meta-networking/recipes-daemons/vblade/vblade_20.bb | 4 +++-
2 files changed, 22 insertions(+), 1 deletion(-)
create mode 100644 meta-networking/recipes-daemons/vblade/files/makefile-add-ldflags.patch
diff --git a/meta-networking/recipes-daemons/vblade/files/makefile-add-ldflags.patch b/meta-networking/recipes-daemons/vblade/files/makefile-add-ldflags.patch
new file mode 100644
index 0000000..a74452d
--- /dev/null
+++ b/meta-networking/recipes-daemons/vblade/files/makefile-add-ldflags.patch
@@ -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 98008da..c328ba7 100644
+--- a/makefile
++++ b/makefile
+@@ -11,7 +11,7 @@ mandir = ${sharedir}/man
+ O=aoe.o bpf.o ${PLATFORM}.o ata.o
+
+ vblade: $O
+- ${CC} -o vblade $O
++ ${CC} ${LDFLAGS} -o vblade $O
+
+ aoe.o : aoe.c config.h dat.h fns.h makefile
+ ${CC} ${CFLAGS} -c $<
diff --git a/meta-networking/recipes-daemons/vblade/vblade_20.bb b/meta-networking/recipes-daemons/vblade/vblade_20.bb
index a357e40..344c746 100644
--- a/meta-networking/recipes-daemons/vblade/vblade_20.bb
+++ b/meta-networking/recipes-daemons/vblade/vblade_20.bb
@@ -5,7 +5,9 @@ LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
SRC_URI = "${SOURCEFORGE_MIRROR}/aoetools/${BPN}-${PV}.tgz \
- file://cross.patch"
+ file://cross.patch \
+ file://makefile-add-ldflags.patch \
+ "
SRC_URI[md5sum] = "3c80e4a6bc7d66ae0c235b88cb44bd59"
SRC_URI[sha256sum] = "c8fe2fc4f2fba8e07e5cfdf17335982584eef2cd5c78bf8b1db93f2b56e7121d"
--
2.7.4
^ permalink raw reply related [flat|nested] 7+ messages in thread* [meta-networking][PATCH 6/6] tunctl: fix QA warning for GNU_HASH
2016-11-01 9:22 [meta-networking][PATCH 0/6] fix GNU_HASH QA warnings Yi Zhao
` (4 preceding siblings ...)
2016-11-01 9:23 ` [meta-networking][PATCH 5/6] vblade: " Yi Zhao
@ 2016-11-01 9:23 ` Yi Zhao
5 siblings, 0 replies; 7+ messages in thread
From: Yi Zhao @ 2016-11-01 9:23 UTC (permalink / raw)
To: openembedded-devel
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>
---
meta-networking/recipes-support/tunctl/tunctl.inc | 4 +++-
.../tunctl/tunctl/makefile-add-ldflags.patch | 19 +++++++++++++++++++
2 files changed, 22 insertions(+), 1 deletion(-)
create mode 100644 meta-networking/recipes-support/tunctl/tunctl/makefile-add-ldflags.patch
diff --git a/meta-networking/recipes-support/tunctl/tunctl.inc b/meta-networking/recipes-support/tunctl/tunctl.inc
index e95cfa5..1c11823 100644
--- a/meta-networking/recipes-support/tunctl/tunctl.inc
+++ b/meta-networking/recipes-support/tunctl/tunctl.inc
@@ -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
diff --git a/meta-networking/recipes-support/tunctl/tunctl/makefile-add-ldflags.patch b/meta-networking/recipes-support/tunctl/tunctl/makefile-add-ldflags.patch
new file mode 100644
index 0000000..c96f538
--- /dev/null
+++ b/meta-networking/recipes-support/tunctl/tunctl/makefile-add-ldflags.patch
@@ -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
--
2.7.4
^ permalink raw reply related [flat|nested] 7+ messages in thread