summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Nygren <tnn@NetBSD.org>2015-02-16 10:22:35 +0100
committerThomas Klausner <wiz@NetBSD.org>2015-02-16 23:56:23 +0100
commitd0c53bdc0b35a5416fc30a610b7401978871a5f1 (patch)
tree11113635343f8935ce9b39131fa5d9fd162378ef
parent1972e9223764618aedc5adc32b64b2c043d1b826 (diff)
downloadxorg-lib-libpciaccess-d0c53bdc0b35a5416fc30a610b7401978871a5f1.tar.gz
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 <alan.coopersmith@oracle.com> Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
-rw-r--r--configure.ac8
1 files 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*)