diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2016-11-01 17:23:00 +0800 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2016-11-14 13:01:10 -0500 |
commit | 942cd09609f9a79b4464f2445e10c9e09f6b78cc (patch) | |
tree | 16dd1f0a7159b3ddcefe32046d7c93a410ff4a5d | |
parent | 816c723aa5b4c106dcc37815a5691173f9f02af1 (diff) | |
download | meta-openembedded-942cd09609f9a79b4464f2445e10c9e09f6b78cc.tar.gz |
aoetools: 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-support/aoetools/aoetools/makefile-add-ldflags.patch | 31 | ||||
-rw-r--r-- | meta-networking/recipes-support/aoetools/aoetools_36.bb | 1 |
2 files changed, 32 insertions, 0 deletions
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 000000000..726d8c564 --- /dev/null +++ b/meta-networking/recipes-support/aoetools/aoetools/makefile-add-ldflags.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | Add LDFLAGS variable to Makefile, make sure the extra linker flags can be passed. | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | |||
5 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
6 | |||
7 | diff --git a/Makefile b/Makefile | ||
8 | index 0c56ade..79f2e2b 100644 | ||
9 | --- a/Makefile | ||
10 | +++ b/Makefile | ||
11 | @@ -68,17 +68,17 @@ clean : | ||
12 | rm -f ${CONF_SCRIPTS} ${AOE_PING_OBJ} ${AOE_CFG_OBJ} ${SANCHECK_OBJ} ${PROGS} | ||
13 | |||
14 | aoeping : ${AOE_PING_OBJ} | ||
15 | - ${CC} ${CFLAGS} -o $@ ${AOE_PING_OBJ} | ||
16 | + ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${AOE_PING_OBJ} | ||
17 | aoeping.o : aoeping.c dat.h fns.h | ||
18 | ${CC} ${CFLAGS} -o $@ -c $< | ||
19 | linux.o : linux.c config.h | ||
20 | ${CC} ${CFLAGS} -o $@ -c $< | ||
21 | aoecfg: ${AOE_CFG_OBJ} | ||
22 | - ${CC} ${CFLAGS} -o $@ ${AOE_CFG_OBJ} | ||
23 | + ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${AOE_CFG_OBJ} | ||
24 | aoecfg.o : aoecfg.c dat.h fns.h | ||
25 | ${CC} ${CFLAGS} -o $@ -c $< | ||
26 | aoe-sancheck : ${SANCHECK_OBJ} | ||
27 | - -$(CC) $(CFLAGS) -o $@ ${SANCHECK_OBJ} $(SANCHECKLIBS) | ||
28 | + -$(CC) $(CFLAGS) ${LDFLAGS} -o $@ ${SANCHECK_OBJ} $(SANCHECKLIBS) | ||
29 | aoe-sancheck.o : aoe-sancheck.c | ||
30 | -$(CC) $(CFLAGS) -o $@ -c $< | ||
31 | |||
diff --git a/meta-networking/recipes-support/aoetools/aoetools_36.bb b/meta-networking/recipes-support/aoetools/aoetools_36.bb index c382a718f..9b73b442a 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" | |||
12 | 12 | ||
13 | SRC_URI = "http://sourceforge.net/projects/${BPN}/files/${BPN}/${BPN}-${PV}.tar.gz \ | 13 | SRC_URI = "http://sourceforge.net/projects/${BPN}/files/${BPN}/${BPN}-${PV}.tar.gz \ |
14 | file://aoe-stat-no-bashism.patch \ | 14 | file://aoe-stat-no-bashism.patch \ |
15 | file://makefile-add-ldflags.patch \ | ||
15 | " | 16 | " |
16 | SRC_URI[md5sum] = "bff30daa988a65f69d4448ce4726a6db" | 17 | SRC_URI[md5sum] = "bff30daa988a65f69d4448ce4726a6db" |
17 | SRC_URI[sha256sum] = "fb5e2cd0de7644cc1ec04ee3aeb43211cf7445a0c19e13d6b3ed5a8fbdf215ff" | 18 | SRC_URI[sha256sum] = "fb5e2cd0de7644cc1ec04ee3aeb43211cf7445a0c19e13d6b3ed5a8fbdf215ff" |