ALT Linux repositórios
Group :: Sistema/Kernel e hardware
RPM: pciutils
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: pciutils-2.2.4-makefile.patch
Download
Download
diff --git a/lib/Makefile b/lib/Makefile
index ae11863..8edc596 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -7,6 +7,7 @@ OBJS=access.o generic.o dump.o names.o f
INCL=internal.h pci.h config.h header.h sysdep.h types.h
PCILIB=libpci.a
+CFLAGS += -fPIC
ifdef PCI_HAVE_PM_LINUX_SYSFS
OBJS += sysfs.o
diff --git a/lib/configure b/lib/configure
index 57c5509..1200f33 100755
--- a/lib/configure
+++ b/lib/configure
@@ -119,7 +119,7 @@ fi
if [ "$zlib" = yes ] ; then
echo >>$c '#define PCI_COMPRESSED_IDS'
echo >>$c '#define PCI_IDS "pci.ids.gz"'
- echo >>$m 'LDFLAGS+=-lz'
+ echo >>$m 'LDLIBS+=-lz'
else
echo >>$c '#define PCI_IDS "pci.ids"'
fi