summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-10-16 11:38:05 +0000
committerMike Frysinger <vapier@gentoo.org>2005-10-16 11:38:05 +0000
commitc278a11a85926cb5f2de801335eacb691fb98886 (patch)
tree05544bdb66248812cc3fbadd3049b06e5f69de85 /sys-apps/pciutils/files
parentfix grammar mistake (I think) (diff)
downloadhistorical-c278a11a85926cb5f2de801335eacb691fb98886.tar.gz
historical-c278a11a85926cb5f2de801335eacb691fb98886.tar.bz2
historical-c278a11a85926cb5f2de801335eacb691fb98886.zip
Build and install a shared library instead of just forcing -fPIC on the static lib.
Package-Manager: portage-2.0.53_rc5
Diffstat (limited to 'sys-apps/pciutils/files')
-rw-r--r--sys-apps/pciutils/files/digest-pciutils-2.2.0-r12
-rw-r--r--sys-apps/pciutils/files/pciutils-2.2.0-shared-lib.patch27
2 files changed, 29 insertions, 0 deletions
diff --git a/sys-apps/pciutils/files/digest-pciutils-2.2.0-r1 b/sys-apps/pciutils/files/digest-pciutils-2.2.0-r1
new file mode 100644
index 000000000000..f8f1bd12d8e2
--- /dev/null
+++ b/sys-apps/pciutils/files/digest-pciutils-2.2.0-r1
@@ -0,0 +1,2 @@
+MD5 4b8d2ee3ad78e4d0343a74a9b0fb84a8 pci.ids-20051015.bz2 98776
+MD5 303fc4bb9669549acf65e4a714527c7e pciutils-2.2.0.tar.gz 194290
diff --git a/sys-apps/pciutils/files/pciutils-2.2.0-shared-lib.patch b/sys-apps/pciutils/files/pciutils-2.2.0-shared-lib.patch
new file mode 100644
index 000000000000..d146b536f999
--- /dev/null
+++ b/sys-apps/pciutils/files/pciutils-2.2.0-shared-lib.patch
@@ -0,0 +1,27 @@
+--- pciutils/lib/Makefile
++++ pciutils/lib/Makefile
+@@ -7,6 +7,7 @@
+ INCL=internal.h pci.h config.h header.h sysdep.h types.h
+
+ PCILIB=libpci.a
++PCISHLIB=libpci.so
+
+ ifdef PCI_HAVE_PM_LINUX_SYSFS
+ OBJS += sysfs.o
+@@ -45,7 +46,15 @@
+ PCILIB=libpciutils.a
+ endif
+
+-all: $(PCILIB)
++all: $(PCILIB) $(PCISHLIB)
++
++SHOBJS = $(OBJS:.o=.lo)
++
++%.lo: %.c
++ $(CC) $(CFLAGS) -fPIC -c -o $@ $^
++
++$(PCISHLIB): $(SHOBJS)
++ $(CC) -shared $(CFLAGS) $(LDFLAGS) -o $@ $^ -fPIC
+
+ $(PCILIB): $(OBJS)
+ rm -f $@