From: Anthony Liguori <anthony@codemonkey.ws>
To: Stefan Weil <weil@mail.berlios.de>
Cc: peter.maydell@linaro.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v2] pkg-config: Add a pkg-config script for cross compilations
Date: Fri, 16 Sep 2011 08:09:17 -0500 [thread overview]
Message-ID: <4E734A7D.6020708@codemonkey.ws> (raw)
In-Reply-To: <1315765553-7086-1-git-send-email-weil@mail.berlios.de>
On 09/11/2011 01:25 PM, Stefan Weil wrote:
> This script can be used for cross compilations.
> I use it on Debian / Ubuntu to provide a cross pkg-config
> for MinGW (32 and 64 bit), ARM, MIPS and PowerPC.
>
> v2: Improvements as suggested by Peter Maydell.
> Thanks for the review.
>
> Signed-off-by: Stefan Weil<weil@mail.berlios.de>
Please post patches as top-level posts and not as replies.
Regards,
Anthony Liguori
> ---
> scripts/cross-pkg-config | 28 ++++++++++++++++++++++++++++
> 1 files changed, 28 insertions(+), 0 deletions(-)
> create mode 100755 scripts/cross-pkg-config
>
> diff --git a/scripts/cross-pkg-config b/scripts/cross-pkg-config
> new file mode 100755
> index 0000000..8d7fe17
> --- /dev/null
> +++ b/scripts/cross-pkg-config
> @@ -0,0 +1,28 @@
> +#!/bin/sh -e
> +
> +# pkg-config for cross compilations
> +
> +# Copyright (C) 2011 Stefan Weil
> +
> +# This work is licensed under the terms of the GNU GPL, version 2 or later.
> +# See the file COPYING in the top-level directory.
> +
> +# This script provides a cross pkg-config for QEMU cross compilations.
> +# It will use the standard pkg-config with special options for the
> +# cross environment which is assumed to be in /usr/{cross-prefix}.
> +
> +# Installation (Debian and similar distributions):
> +# Simply copy or link it to /usr/bin/{cross-prefix}-pkg-config.
> +
> +# Examples (Debian, Ubuntu):
> +# /usr/bin/amd64-mingw32msvc-pkg-config
> +# /usr/bin/i586-mingw32msvc-pkg-config
> +# /usr/bin/arm-linux-gnueabi-pkg-config
> +# /usr/bin/mipsel-linux-gnu-pkg-config
> +
> +basename=`basename "$0"`
> +prefix="/usr/${basename%-pkg-config}"
> +export PKG_CONFIG_LIBDIR="$prefix/lib/pkgconfig"
> +exec pkg-config --define-variable=prefix="$prefix" "$@"
> +
> +# end
next prev parent reply other threads:[~2011-09-16 13:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-11 15:55 [Qemu-devel] [PATCH] pkg-config: Add a pkg-config script for cross compilations Stefan Weil
2011-09-11 17:31 ` Peter Maydell
2011-09-11 18:25 ` [Qemu-devel] [PATCH v2] " Stefan Weil
2011-09-16 13:09 ` Anthony Liguori [this message]
2011-09-11 18:25 ` [Qemu-devel] [PATCH] " Paolo Bonzini
2011-09-11 18:47 ` Stefan Weil
2011-09-12 6:25 ` Paolo Bonzini
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=4E734A7D.6020708@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=weil@mail.berlios.de \
/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.