[PATCH:libpciaccess] Bug 89151: Fix build on NetBSD/alpha and NetBSD/sparc64.

Alan Coopersmith alan.coopersmith at oracle.com
Mon Feb 16 08:13:33 PST 2015


On 02/16/15 01:24 AM, Thomas Klausner wrote:
> From: Tobias Nygren <tnn at NetBSD.org>
>
> This patch is required for building on NetBSD/alpha (needs platform
> specific -lalpha) and NetBSD/sparc64 (no platform specific library,
> just -lpci). The patch also generalizes to support all NetBSD
> platforms with pci bus.
>
> https://bugs.freedesktop.org/show_bug.cgi?id=89151
>
> Signed-off-by: Thomas Klausner <wiz at NetBSD.org>
> ---
>   configure.ac | 8 ++++++--
>   1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index f11204f..f94fa15 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -77,12 +77,16 @@ case $host_os in
>   	*netbsd*)
>   		case $host in
>   		*i[3-9]86*)
> -			PCIACCESS_LIBS="$PCIACCESS_LIBS -li386 -lpci"
> +			PCIACCESS_LIBS="$PCIACCESS_LIBS -li386"
>   			;;
>   		*x86_64*|*amd64*)
> -			PCIACCESS_LIBS="$PCIACCESS_LIBS -lx86_64 -lpci"
> +			PCIACCESS_LIBS="$PCIACCESS_LIBS -lx86_64"
> +			;;
> +		*alpha*)
> +			PCIACCESS_LIBS="$PCIACCESS_LIBS -lalpha"
>   			;;
>   		esac
> +		PCIACCESS_LIBS="$PCIACCESS_LIBS -lpci"
>   		netbsd=yes
>   		;;
>   	*openbsd*)
>

Reviewed-by: Alan Coopersmith <alan.coopersmith at oracle.com>

-- 
	-Alan Coopersmith-              alan.coopersmith at oracle.com
	 Oracle Solaris Engineering - http://blogs.oracle.com/alanc


More information about the xorg-devel mailing list