aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-01-02 15:38:42 +0100
committerMartin Mareš <mj@ucw.cz>2022-04-15 23:57:52 +0200
commitdc687532cd7c93dbeeb44ad857ac9aa936d74064 (patch)
tree35a2eda524f02fd883d7e0e7313406e7bceb683c
parent777ec061df28789bb041b81714d4e55e1cbcec71 (diff)
downloadpciutils-dc687532cd7c93dbeeb44ad857ac9aa936d74064.tar.gz
libpci: Compile windows i386-ports only for x86 CPU
There are already arm32 and arm64 port of MinGW-w64 toolchain.
-rwxr-xr-xlib/configure2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/configure b/lib/configure
index c736e01..45a416a 100755
--- a/lib/configure
+++ b/lib/configure
@@ -153,6 +153,7 @@ case $sys in
# So always set -lcfgmgr32 as a first library parameter which
# instruct linker to prefer symbols from cfgmgr32.dll.
echo >>$m 'WITH_LIBS+=-lcfgmgr32'
+ case $cpu in i?86|x86_64)
echo_n " i386-ports"
echo >>$c '#define PCI_HAVE_PM_INTEL_CONF'
if [ "$sys" = "cygwin" ] ; then
@@ -162,6 +163,7 @@ case $sys in
# advapi32 is windows system library and used only by lib/i386-io-windows.h
echo >>$m 'WITH_LIBS+=-ladvapi32'
fi
+ ;; esac
EXEEXT=.exe
;;
beos|haiku)