diff mbox series

[1/2] python3-pycairo: Pass -fPIC via CFLAGS

Message ID 20170725083530.15432-1-raj.khem@gmail.com
State Accepted
Commit 058b155a66c5f81573379d258250323c72901ff7
Headers show
Series [1/2] python3-pycairo: Pass -fPIC via CFLAGS | expand

Commit Message

Khem Raj July 25, 2017, 8:35 a.m. UTC
Fixes

| /mnt/a/oe/build/tmp/work/corei7-64-bec-linux/python3-pycairo/1.10.0-r2/recipe-sysroot-native/usr/bin/x86_64-bec-linu
x/x86_64-bec-linux-ld: src/cairomodule.c.1.o: relocation R_X86_64_PC32 against symbol `CairoError' can not be used whe
n making a shared object; recompile with -fPIC

Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 meta/recipes-devtools/python/python3-pycairo_1.10.0.bb | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.13.3

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
diff mbox series

Patch

diff --git a/meta/recipes-devtools/python/python3-pycairo_1.10.0.bb b/meta/recipes-devtools/python/python3-pycairo_1.10.0.bb
index f9031b3bca..9258ba11c7 100644
--- a/meta/recipes-devtools/python/python3-pycairo_1.10.0.bb
+++ b/meta/recipes-devtools/python/python3-pycairo_1.10.0.bb
@@ -19,6 +19,8 @@  S = "${WORKDIR}/pycairo-${PV}"
 
 inherit distutils3 pkgconfig
 
+CFLAGS += "-fPIC"
+
 BBCLASSEXTEND = "native"
 
 do_configure() {