]> git.ipfire.org Git - thirdparty/pciutils.git/commitdiff
libpci: Compile windows i386-ports only for x86 CPU
authorPali Rohár <pali@kernel.org>
Sun, 2 Jan 2022 14:38:42 +0000 (15:38 +0100)
committerMartin Mareš <mj@ucw.cz>
Fri, 15 Apr 2022 21:57:52 +0000 (23:57 +0200)
There are already arm32 and arm64 port of MinGW-w64 toolchain.

lib/configure

index c736e014d0109852c4f6fdfcf58e2a589b5fa7a0..45a416a7620e0763216d323ade801bdf90f6073e 100755 (executable)
@@ -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)