340
|
1 |
--- libtar-1.2.11/libtar/Makefile.in.orig 2007-07-15 00:27:33.158191610 +0700
|
|
2 |
+++ libtar-1.2.11/libtar/Makefile.in 2007-07-15 00:35:19.501511799 +0700
|
|
3 |
@@ -45,7 +45,7 @@
|
|
4 |
${top_srcdir}/compat/compat.h \
|
|
5 |
${top_srcdir}/lib/libtar.h \
|
|
6 |
../listhash/libtar_listhash.h
|
|
7 |
-LIBTAR_LIBS = ../lib/libtar.a
|
|
8 |
+LIBTAR_LIBS = ../lib/libtar.so
|
|
9 |
ALL = libtar
|
|
10 |
|
|
11 |
|
|
12 |
--- libtar-1.2.11/lib/Makefile.in.orig 2007-07-15 00:30:49.037594610 +0700
|
|
13 |
+++ libtar-1.2.11/lib/Makefile.in 2007-07-15 00:36:33.391346883 +0700
|
|
14 |
@@ -56,8 +56,8 @@
|
|
15 |
${srcdir}/libtar.h \
|
|
16 |
${srcdir}/internal.h \
|
|
17 |
../listhash/libtar_listhash.h
|
|
18 |
-LIBTAR_LIBS = ./libtar.a
|
|
19 |
-ALL = libtar.a
|
|
20 |
+LIBTAR_LIBS = ./libtar.so
|
|
21 |
+ALL = libtar.so
|
|
22 |
|
|
23 |
DISTCLEANFILES = ../listhash/libtar_listhash.h \
|
|
24 |
../listhash/libtar_list.c \
|
|
25 |
@@ -68,14 +68,13 @@
|
|
26 |
|
|
27 |
.PHONY: clean distclean install
|
|
28 |
|
|
29 |
-libtar.a: ${LIBTAR_OBJS} ${LIBOBJS}
|
|
30 |
- ${AR} rc libtar.a ${LIBTAR_OBJS} ${LIBOBJS}
|
|
31 |
- ${RANLIB} libtar.a
|
|
32 |
+libtar.so: ${LIBTAR_OBJS} ${LIBOBJS}
|
|
33 |
+ $(CC) -G -o libtar.so ${LIBTAR_OBJS} ${LIBOBJS}
|
|
34 |
|
|
35 |
${LIBTAR_OBJS}: ${LIBTAR_HDRS}
|
|
36 |
|
|
37 |
.c.o:
|
|
38 |
- ${CC} ${CFLAGS} ${CPPFLAGS} -c -o $@ $<
|
|
39 |
+ ${CC} -KPIC ${CFLAGS} ${CPPFLAGS} -c -o $@ $<
|
|
40 |
|
|
41 |
clean:
|
|
42 |
rm -f *~ *.o ${ALL} core
|
|
43 |
@@ -85,7 +84,7 @@
|
|
44 |
|
|
45 |
install: ${ALL}
|
|
46 |
${MKDIR} ${DESTDIR}${libdir}
|
|
47 |
- ${INSTALL_DATA} libtar.a ${DESTDIR}${libdir}
|
|
48 |
+ ${INSTALL_DATA} libtar.so ${DESTDIR}${libdir}
|
|
49 |
${MKDIR} ${DESTDIR}${includedir}
|
|
50 |
${INSTALL_DATA} ${srcdir}/libtar.h ${DESTDIR}${includedir}
|
|
51 |
${INSTALL_DATA} ../listhash/libtar_listhash.h ${DESTDIR}${includedir}
|