All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-virtualization][PATCH] libvirt: fix host gcc can't recognized option -fmacro-prefix-map
@ 2020-11-19  5:18 Naveen Saini
  2020-11-19 16:07 ` Bruce Ashfield
  0 siblings, 1 reply; 2+ messages in thread
From: Naveen Saini @ 2020-11-19  5:18 UTC (permalink / raw)
  To: meta-virtualization

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>
---
 recipes-extended/libvirt/libvirt-python.inc | 5 +++++
 1 file changed, 5 insertions(+)

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} \
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-11-19 16:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-19  5:18 [meta-virtualization][PATCH] libvirt: fix host gcc can't recognized option -fmacro-prefix-map Naveen Saini
2020-11-19 16:07 ` Bruce Ashfield

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.