external/libpciaccess
修订版 | d0c53bdc0b35a5416fc30a610b7401978871a5f1 (tree) |
---|---|
时间 | 2015-02-17 07:56:23 |
作者 | Tobias Nygren <tnn@NetB...> |
Commiter | Thomas Klausner |
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>
@@ -77,12 +77,16 @@ case $host_os in | ||
77 | 77 | *netbsd*) |
78 | 78 | case $host in |
79 | 79 | *i[3-9]86*) |
80 | - PCIACCESS_LIBS="$PCIACCESS_LIBS -li386 -lpci" | |
80 | + PCIACCESS_LIBS="$PCIACCESS_LIBS -li386" | |
81 | 81 | ;; |
82 | 82 | *x86_64*|*amd64*) |
83 | - PCIACCESS_LIBS="$PCIACCESS_LIBS -lx86_64 -lpci" | |
83 | + PCIACCESS_LIBS="$PCIACCESS_LIBS -lx86_64" | |
84 | + ;; | |
85 | + *alpha*) | |
86 | + PCIACCESS_LIBS="$PCIACCESS_LIBS -lalpha" | |
84 | 87 | ;; |
85 | 88 | esac |
89 | + PCIACCESS_LIBS="$PCIACCESS_LIBS -lpci" | |
86 | 90 | netbsd=yes |
87 | 91 | ;; |
88 | 92 | *openbsd*) |