]> git.pld-linux.org Git - packages/libident.git/blob - libident-DESTDIR.patch
- install lib as libident.so.0.22, not libident.so
[packages/libident.git] / libident-DESTDIR.patch
1 diff -ur libident-0.22.orig/Makefile libident-0.22/Makefile
2 --- libident-0.22.orig/Makefile Fri Jan 17 20:10:55 1997
3 +++ libident-0.22/Makefile      Sat Jan  6 11:01:57 2001
4 @@ -7,11 +7,12 @@
5  RM=rm -f
6  RANLIB=ranlib
7  AR=ar cq
8 +LD=ld
9  
10 -INSTROOT=/usr/local
11 +INSTROOT=/usr/
12  LIBDIR=$(INSTROOT)/lib
13  INCDIR=$(INSTROOT)/include
14 -MANDIR=$(INSTROOT)/man/man3
15 +MANDIR=$(INSTROOT)/share/man/man3
16  
17  #
18  # Add -g for debugging information
19 @@ -19,10 +20,13 @@
20  # Add -DHAVE_ANSIHEADERS if your system have the ANSI C header files
21  # needed for our purposes (stdlib, string, unistd).
22  #
23 -CFLAGS = -O
24 +#CFLAGS = RPM_OPT_FLAGS
25  
26  LDLIBS =
27  LIBIDENT = libident.a
28 +SHLIBIDENT = libident.so
29 +SHLIB0 = libident.so.0
30 +SHLIB = libident.so.0.22
31  
32  OBJS = ident.o id_open.o id_close.o id_query.o id_parse.o support.o version.o
33  
34 @@ -48,13 +52,16 @@
35         @echo other
36  
37  
38 -all:   $(LIBIDENT)
39 +all:   $(LIBIDENT) $(SHLIB)
40  
41  $(LIBIDENT):   $(OBJS)
42         -$(RM) $(LIBIDENT)
43         $(AR) $(LIBIDENT) $(OBJS)
44         -$(RANLIB) $(LIBIDENT)
45  
46 +$(SHLIB):      $(OBJS)
47 +       $(CC) -shared -D_REENTRANT -lc -Wl,-soname,$(SHLIB0) -o $@ $(OBJS)
48 +
49  testers: lookup-tester ident-tester
50  
51  ident-tester: $(LIBIDENT) ident-tester.o
52 @@ -83,7 +90,8 @@
53  
54  install:
55         -$(RM) $(LIBDIR)/$(LIBIDENT)
56 -       cp $(LIBIDENT) $(LIBDIR)/$(LIBIDENT)
57 +       cp $(LIBIDENT) $(SHLIB) $(LIBDIR)
58 +       ln -sf $(SHLIB) $(LIBDIR)/$(SHLIBIDENT)
59         -$(RANLIB) $(LIBDIR)/$(LIBIDENT)
60         -$(RM) $(INCDIR)/ident.h
61         cp ident.h $(INCDIR)/ident.h
62 @@ -91,7 +99,8 @@
63         cp ident.3 $(MANDIR)/ident.3
64  
65  clean:
66 -       -$(RM) $(LIBIDENT) ident-tester lookup-tester *~ core *.o \#*
67 +       -$(RM) $(LIBIDENT) $(LIBSHAREIDENT) ident-tester lookup-tester *~ \
68 +       core *.o #*
69  
70  #
71  
72 @@ -140,7 +149,7 @@
73  #
74  #
75  linux:
76 -       @$(MAKE) all CC="gcc" CFLAGS="-O -DHAVE_ANSIHEADERS"
77 +       @$(MAKE) all CC="gcc" CFLAGS="$(CFLAGS) -DHAVE_ANSIHEADERS"
78  
79  #
80  #
This page took 0.039437 seconds and 4 git commands to generate.