diff options
author | Kang Kai <kai.kang@windriver.com> | 2012-12-12 18:48:07 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-12-17 17:24:53 +0000 |
commit | 40bb94f63eafaf4a58e745cd10ce77e28ce3abd2 (patch) | |
tree | 50da6de98d9415d2d0fec4bf199ca2d209f3dd12 /meta/recipes-extended/newt/files | |
parent | 44c9d1ff258c31110a2cdca198e6300d705175e2 (diff) | |
download | poky-40bb94f63eafaf4a58e745cd10ce77e28ce3abd2.tar.gz |
newt: enable python support
Compile newt with python support. There may be packages that need newt's
python extension.
Add python to DEPENDS. And add patch fix_python_fpic.patch to compile
python .so module with flag -fPIC.
(From OE-Core rev: aa591ecb1aac1c0308c05dbac81bc056869a2c3e)
Signed-off-by: Kang Kai <kai.kang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/newt/files')
-rw-r--r-- | meta/recipes-extended/newt/files/fix_python_fpic.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/meta/recipes-extended/newt/files/fix_python_fpic.patch b/meta/recipes-extended/newt/files/fix_python_fpic.patch new file mode 100644 index 0000000000..3ef94e0c56 --- /dev/null +++ b/meta/recipes-extended/newt/files/fix_python_fpic.patch | |||
@@ -0,0 +1,24 @@ | |||
1 | Fix relocations warning when compile python module | ||
2 | |||
3 | After enable python support in newt, bitbake complains warning: | ||
4 | |||
5 | WARNING: QA Issue: ELF binary '/mnt/sda10/poky-all-platform/build/tmp/work/i586-poky-linux/libnewt/0.52.14-r2/packages-split/libnewt-python/usr/lib/python2.7/site-packages/_snackmodule.so' has relocations in .text | ||
6 | |||
7 | Add flag -fPIC to compile _snackmodule.so to fix the warning. | ||
8 | |||
9 | Signed-off-by: Kang Kai <kai.kang@windriver.com> | ||
10 | |||
11 | Upstream-Status: Pending | ||
12 | |||
13 | --- | ||
14 | --- newt-0.52.14/Makefile.in 2012-12-04 17:27:27.578915801 +0800 | ||
15 | +++ newt-0.52.14/Makefile.in.new 2012-12-04 17:28:43.274918472 +0800 | ||
16 | @@ -84,7 +84,7 @@ | ||
17 | PIFLAGS=`$$ver-config --includes`; \ | ||
18 | PLDFLAGS=`$$ver-config --ldflags`; \ | ||
19 | PLFLAGS=`$$ver-config --libs`; \ | ||
20 | - $(CC) $(CPPFLAGS) $$PIFLAGS $$PCFLAGS -c -o $$ver/snackmodule.o snackmodule.c ;\ | ||
21 | + $(CC) $(SHCFLAGS) $(CPPFLAGS) $$PIFLAGS $$PCFLAGS -c -o $$ver/snackmodule.o snackmodule.c ;\ | ||
22 | $(CC) --shared $$PLDFLAGS $$PLFLAGS $(LDFLAGS) -o $$ver/_snackmodule.so $$ver/snackmodule.o -L. -lnewt $(LIBS);\ | ||
23 | done || : | ||
24 | touch $@ | ||