summaryrefslogtreecommitdiff
blob: 9a107a733a32ad52a34e4ad06bc67bb7b92cc0a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
 - fix some build paths
 - dont strip binaries
 - build libpci.a with PIC (yes this sucks, but a non-stable ABI in
    libpic.so sucks too and libpci.a is how Debian goes about it)

--- Makefile
+++ Makefile
@@ -7,10 +7,10 @@
 VERSION=2.2.3
 DATE=2006-05-05
 
-PREFIX=/usr/local
+PREFIX=/usr
 SBINDIR=$(PREFIX)/sbin
 SHAREDIR=$(PREFIX)/share
-IDSDIR=$(SHAREDIR)
+IDSDIR=$(SHAREDIR)/misc
 MANDIR:=$(shell if [ -d $(PREFIX)/share/man ] ; then echo $(PREFIX)/share/man ; else echo $(PREFIX)/man ; fi)
 INSTALL=install
 DIRINSTALL=install -d
--- lib/Makefile
+++ lib/Makefile
@@ -51,10 +51,14 @@
 
 all: $(PCILIB)
 
+AR ?= ar
+RANLIB ?= ranlib
+CFLAGS += -fPIC
+
 $(PCILIB): $(OBJS)
 	rm -f $@
-	ar rcs $@ $^
-	ranlib $@
+	$(AR) rcs $@ $^
+	$(RANLIB) $@
 
 access.o: access.c $(INCL)
 i386-ports.o: i386-ports.c $(INCL) i386-io-hurd.h i386-io-linux.h i386-io-sunos.h