Commit d0c53bdc authored by Tobias Nygren's avatar Tobias Nygren Committed by Thomas Klausner
Browse files

Bug 89151: Fix build on NetBSD/alpha and NetBSD/sparc64.

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

Reviewed-by: Alan Coopersmith's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Thomas Klausner's avatarThomas Klausner <wiz@NetBSD.org>
parent 1972e922
......@@ -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*)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment