All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Bruce Ashfield" <bruce.ashfield@gmail.com>
To: Naveen Saini <naveen.kumar.saini@intel.com>
Cc: meta-virtualization@lists.yoctoproject.org
Subject: Re: [meta-virtualization][PATCH] libvirt: fix host gcc can't recognized option -fmacro-prefix-map
Date: Thu, 19 Nov 2020 11:07:09 -0500	[thread overview]
Message-ID: <20201119160708.GB9432@gmail.com> (raw)
In-Reply-To: <1605763101-60407-1-git-send-email-naveen.kumar.saini@intel.com>

merged.

Bruce

In message: [meta-virtualization][PATCH] libvirt: fix host gcc can't recognized option -fmacro-prefix-map
on 19/11/2020 Naveen Saini wrote:

> 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
> 

> 
> 
> 


      reply	other threads:[~2020-11-19 16:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201119160708.GB9432@gmail.com \
    --to=bruce.ashfield@gmail.com \
    --cc=meta-virtualization@lists.yoctoproject.org \
    --cc=naveen.kumar.saini@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.