aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNaveen Saini <naveen.kumar.saini@intel.com>2020-11-19 13:18:21 +0800
committerBruce Ashfield <bruce.ashfield@gmail.com>2020-11-19 11:05:48 -0500
commit08b5de42f9216a10bb2f83263b7e6789686b4c3d (patch)
treeaebe7203518bad7e5b4be59efeec58163a414f44
parent968e4116a8dd54acf22c948e56d6f12653def922 (diff)
downloadmeta-virtualization-08b5de42f9216a10bb2f83263b7e6789686b4c3d.tar.gz
meta-virtualization-08b5de42f9216a10bb2f83263b7e6789686b4c3d.tar.bz2
meta-virtualization-08b5de42f9216a10bb2f83263b7e6789686b4c3d.zip
libvirt: fix host gcc can't recognized option -fmacro-prefix-map
libvirt-python picks host gcc (instead of cross gcc) to build shared library in absense of LD*SHARED flags. Instead of inherit distutils3-base.class, taking SHARED flags to create libvirt-python package. Ref: https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/distutils-common-base.bbclass Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r--recipes-extended/libvirt/libvirt-python.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/recipes-extended/libvirt/libvirt-python.inc b/recipes-extended/libvirt/libvirt-python.inc
index 7b87d5e..819eceb 100644
--- a/recipes-extended/libvirt/libvirt-python.inc
+++ b/recipes-extended/libvirt/libvirt-python.inc
@@ -24,6 +24,11 @@ export LIBVIRT_API_PATH = "${S}/docs/libvirt-api.xml"
export LIBVIRT_CFLAGS = "-I${S}/include"
export LIBVIRT_LIBS = "-L${B}/src/.libs -lvirt -ldl"
export LDFLAGS="-L${B}/src/.libs"
+export LDSHARED = "${CCLD} -shared"
+export LDCXXSHARED = "${CXX} -shared"
+export CCSHARED = "-fPIC -DPIC"
+export LINKFORSHARED = "${SECURITY_CFLAGS} -Xlinker -export-dynamic"
+
LIBVIRT_INSTALL_ARGS = "--root=${D} \
--prefix=${prefix} \