Magellan Linux

Contents of /trunk/pciutils/patches/pciutils-2.2.8-shared-lib.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 471 - (show annotations) (download)
Sun Feb 10 22:06:47 2008 UTC (16 years, 8 months ago) by niro
File size: 865 byte(s)
-re-diffed against 2.2.8

1 diff -Naur pciutils-2.2.8/Makefile pciutils-2.2.8-magellan/Makefile
2 --- pciutils-2.2.8/Makefile 2007-10-19 12:12:24.000000000 +0200
3 +++ pciutils-2.2.8-magellan/Makefile 2008-02-10 23:06:21.000000000 +0100
4 @@ -20,6 +20,7 @@
5 AR=ar
6 RANLIB=ranlib
7 PCILIB=lib/libpci.a
8 +PCISHLIB=lib/libpci.so
9 PCILIBPC=lib/libpci.pc
10 PCIINC=lib/config.h lib/header.h lib/pci.h lib/types.h lib/sysdep.h
11 PCIINC_INS=lib/config.h lib/header.h lib/pci.h lib/types.h
12 @@ -31,7 +32,15 @@
13
14 export
15
16 -all: $(PCILIB) lspci setpci lspci.8 setpci.8 update-pciids update-pciids.8 $(PCI_IDS)
17 +all: $(PCILIB) $(PCISHLIB) lspci setpci lspci.8 setpci.8 update-pciids update-pciids.8 $(PCI_IDS)
18 +
19 +SHOBJS = $(OBJS:.o=.lo)
20 +
21 +%.lo: %.c
22 + $(CC) $(CFLAGS) -fPIC -c -o $@ $^
23 +
24 +$(PCISHLIB): $(SHOBJS)
25 + $(CC) -shared $(CFLAGS) $(LDFLAGS) -o $@ $^ -fPIC
26
27 $(PCILIB): $(PCIINC) force
28 $(MAKE) -C lib all