summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYi Zhao <yi.zhao@windriver.com>2016-11-01 17:23:04 +0800
committerJoe MacDonald <joe_macdonald@mentor.com>2016-11-14 13:01:11 -0500
commitf08e9d4c7ca1e9261484e4ffedd27370109d2bba (patch)
treeffd8b13f30fc65f78a4462c101321a2ecd94dde6
parent80450e62add364bc871d7b45f6781131e8b88d4f (diff)
downloadmeta-openembedded-f08e9d4c7ca1e9261484e4ffedd27370109d2bba.tar.gz
vblade: 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>
-rw-r--r--meta-networking/recipes-daemons/vblade/files/makefile-add-ldflags.patch19
-rw-r--r--meta-networking/recipes-daemons/vblade/vblade_20.bb4
2 files changed, 22 insertions, 1 deletions
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 000000000..a74452db6
--- /dev/null
+++ b/meta-networking/recipes-daemons/vblade/files/makefile-add-ldflags.patch
@@ -0,0 +1,19 @@
1Add LDFLAGS variable to Makefile, make sure the extra linker flags can be passed.
2
3Upstream-Status: Pending
4
5Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
6
7diff --git a/makefile b/makefile
8index 98008da..c328ba7 100644
9--- a/makefile
10+++ b/makefile
11@@ -11,7 +11,7 @@ mandir = ${sharedir}/man
12 O=aoe.o bpf.o ${PLATFORM}.o ata.o
13
14 vblade: $O
15- ${CC} -o vblade $O
16+ ${CC} ${LDFLAGS} -o vblade $O
17
18 aoe.o : aoe.c config.h dat.h fns.h makefile
19 ${CC} ${CFLAGS} -c $<
diff --git a/meta-networking/recipes-daemons/vblade/vblade_20.bb b/meta-networking/recipes-daemons/vblade/vblade_20.bb
index a357e4037..344c7462c 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"
5LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" 5LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
6 6
7SRC_URI = "${SOURCEFORGE_MIRROR}/aoetools/${BPN}-${PV}.tgz \ 7SRC_URI = "${SOURCEFORGE_MIRROR}/aoetools/${BPN}-${PV}.tgz \
8 file://cross.patch" 8 file://cross.patch \
9 file://makefile-add-ldflags.patch \
10 "
9 11
10SRC_URI[md5sum] = "3c80e4a6bc7d66ae0c235b88cb44bd59" 12SRC_URI[md5sum] = "3c80e4a6bc7d66ae0c235b88cb44bd59"
11SRC_URI[sha256sum] = "c8fe2fc4f2fba8e07e5cfdf17335982584eef2cd5c78bf8b1db93f2b56e7121d" 13SRC_URI[sha256sum] = "c8fe2fc4f2fba8e07e5cfdf17335982584eef2cd5c78bf8b1db93f2b56e7121d"