Magellan Linux

Annotation of /trunk/pciutils/patches/pciutils-2.2.9-shared-lib.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 472 - (hide annotations) (download)
Sun Feb 10 22:38:29 2008 UTC (16 years, 3 months ago) by niro
File size: 870 byte(s)
-re-diffed against 2.2.9; added $(LDLIBS) to cc line because -lz moved to LDLIBS

1 niro 472 diff -Naur pciutils-2.2.9/Makefile pciutils-2.2.9-magellan/Makefile
2     --- pciutils-2.2.9/Makefile 2007-11-06 22:29:09.000000000 +0100
3     +++ pciutils-2.2.9-magellan/Makefile 2008-02-10 23:39:27.000000000 +0100
4     @@ -21,6 +21,7 @@
5     RANLIB=ranlib
6     PCILIB=lib/libpci.a
7     PCILIBPC=lib/libpci.pc
8     +PCISHLIB=lib/libpci.so
9     PCIINC=lib/config.h lib/header.h lib/pci.h lib/types.h lib/sysdep.h
10     PCIINC_INS=lib/config.h lib/header.h lib/pci.h lib/types.h
11    
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) $(LDLIBS) -o $@ $^ -fPIC
26    
27     $(PCILIB): $(PCIINC) force
28     $(MAKE) -C lib all