qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 1/2] ./configure: request pkg-config to provide


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH 1/2] ./configure: request pkg-config to provide private libs when static linking
Date: Mon, 23 Jan 2012 10:33:38 +0000

On 23 January 2012 07:41, Sergei Trofimovich <address@hidden> wrote:
> From: Sergei Trofimovich <address@hidden>
>
> Signed-off-by: Sergei Trofimovich <address@hidden>
> ---
>  configure |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/configure b/configure
> index 467e87b..f3dcfba 100755
> --- a/configure
> +++ b/configure
> @@ -553,6 +553,7 @@ for opt do
>   --static)
>     static="yes"
>     LDFLAGS="-static $LDFLAGS"
> +    pkg_config="${pkg_config} --static"
>   ;;
>   --mandir=*) mandir="$optarg"
>   ;;

I guess this works, but it seems a bit fragile, for example
if ! has $pkg_config; then
  ...
will work, but
if ! has "$pkg_config"; then
  ...

won't.

-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]