diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2016-08-18 17:37:39 +0800 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2016-08-22 15:49:29 +0200 |
commit | 7fdf3535f6b60f3ea268b718728a007140f0657a (patch) | |
tree | 78f34249a2f476b14f50937cedade937417e9bd5 /meta-oe/recipes-extended/libx86-1/libx86-1.1/makefile-add-ldflags.patch | |
parent | 107689a13348d5c1030bbdf03917ebcb143d2018 (diff) | |
download | meta-openembedded-7fdf3535f6b60f3ea268b718728a007140f0657a.tar.gz |
libx86-1: 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>
Diffstat (limited to 'meta-oe/recipes-extended/libx86-1/libx86-1.1/makefile-add-ldflags.patch')
-rw-r--r-- | meta-oe/recipes-extended/libx86-1/libx86-1.1/makefile-add-ldflags.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/libx86-1/libx86-1.1/makefile-add-ldflags.patch b/meta-oe/recipes-extended/libx86-1/libx86-1.1/makefile-add-ldflags.patch new file mode 100644 index 0000000000..821ab379d5 --- /dev/null +++ b/meta-oe/recipes-extended/libx86-1/libx86-1.1/makefile-add-ldflags.patch | |||
@@ -0,0 +1,17 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
4 | |||
5 | diff --git a/Makefile b/Makefile | ||
6 | index 951b617..6d9b73d 100644 | ||
7 | --- a/Makefile | ||
8 | +++ b/Makefile | ||
9 | @@ -22,7 +22,7 @@ static: $(OBJECTS) | ||
10 | $(AR) cru libx86.a $(OBJECTS) | ||
11 | |||
12 | shared: $(OBJECTS) | ||
13 | - $(CC) $(CFLAGS) -o libx86.so.1 -shared -Wl,-soname,libx86.so.1 $(OBJECTS) | ||
14 | + $(CC) $(CFLAGS) $(LDFLAGS) -o libx86.so.1 -shared -Wl,-soname,libx86.so.1 $(OBJECTS) | ||
15 | |||
16 | objclean: | ||
17 | $(MAKE) -C x86emu clean | ||