summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/newt/files
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/newt/files')
-rw-r--r--meta/recipes-extended/newt/files/fix_python_fpic.patch24
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 @@
1Fix relocations warning when compile python module
2
3After enable python support in newt, bitbake complains warning:
4
5WARNING: 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
7Add flag -fPIC to compile _snackmodule.so to fix the warning.
8
9Signed-off-by: Kang Kai <kai.kang@windriver.com>
10
11Upstream-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 $@