diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2016-08-19 18:04:16 +0800 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2016-09-05 13:34:11 -0400 |
commit | 1157490a50f896203e9ddc11633943089c7b80ad (patch) | |
tree | 0d78263c4000778cd4c77bbae38d589f0ae88050 /meta-networking/recipes-support/ipvsadm | |
parent | 490d792737a9ed00cab3d9e33d4843746150b14b (diff) | |
download | meta-openembedded-1157490a50f896203e9ddc11633943089c7b80ad.tar.gz |
ipvsadm: 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>
Diffstat (limited to 'meta-networking/recipes-support/ipvsadm')
-rw-r--r-- | meta-networking/recipes-support/ipvsadm/ipvsadm/makefile-add-ldflags.patch | 19 | ||||
-rw-r--r-- | meta-networking/recipes-support/ipvsadm/ipvsadm_1.26.bb | 1 |
2 files changed, 20 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/ipvsadm/ipvsadm/makefile-add-ldflags.patch b/meta-networking/recipes-support/ipvsadm/ipvsadm/makefile-add-ldflags.patch new file mode 100644 index 000000000..1bf1eed4c --- /dev/null +++ b/meta-networking/recipes-support/ipvsadm/ipvsadm/makefile-add-ldflags.patch | |||
@@ -0,0 +1,19 @@ | |||
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 461c021..8bc9cde 100644 | ||
9 | --- a/Makefile | ||
10 | +++ b/Makefile | ||
11 | @@ -86,7 +86,7 @@ libs: | ||
12 | make -C libipvs | ||
13 | |||
14 | ipvsadm: $(OBJS) libs | ||
15 | - $(CC) $(CFLAGS) -o $@ $(OBJS) $(STATIC_LIBS) $(LIBS) | ||
16 | + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(STATIC_LIBS) $(LIBS) | ||
17 | |||
18 | install: all | ||
19 | if [ ! -d $(SBIN) ]; then $(MKDIR) -p $(SBIN); fi | ||
diff --git a/meta-networking/recipes-support/ipvsadm/ipvsadm_1.26.bb b/meta-networking/recipes-support/ipvsadm/ipvsadm_1.26.bb index 7302e9d3e..8d1b3f015 100644 --- a/meta-networking/recipes-support/ipvsadm/ipvsadm_1.26.bb +++ b/meta-networking/recipes-support/ipvsadm/ipvsadm_1.26.bb | |||
@@ -19,6 +19,7 @@ SRC_URI = "http://www.linuxvirtualserver.org/software/kernel-2.6/${BP}.tar.gz \ | |||
19 | file://0001-Modify-the-Makefile-for-cross-compile.patch \ | 19 | file://0001-Modify-the-Makefile-for-cross-compile.patch \ |
20 | file://0002-Replace-nl_handle-to-nl_sock.patch \ | 20 | file://0002-Replace-nl_handle-to-nl_sock.patch \ |
21 | file://0003-ipvsadm-remove-dependency-on-bash.patch \ | 21 | file://0003-ipvsadm-remove-dependency-on-bash.patch \ |
22 | file://makefile-add-ldflags.patch \ | ||
22 | " | 23 | " |
23 | 24 | ||
24 | SRC_URI[md5sum] = "eac3ba3f62cd4dea2da353aeddd353a8" | 25 | SRC_URI[md5sum] = "eac3ba3f62cd4dea2da353aeddd353a8" |