patches/libtar-01-shared.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 340 eed15552a496
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
340
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
     1
--- libtar-1.2.11/libtar/Makefile.in.orig	2007-07-15 00:27:33.158191610 +0700
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
     2
+++ libtar-1.2.11/libtar/Makefile.in	2007-07-15 00:35:19.501511799 +0700
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
     3
@@ -45,7 +45,7 @@
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
     4
 		  ${top_srcdir}/compat/compat.h \
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
     5
 		  ${top_srcdir}/lib/libtar.h \
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
     6
 		  ../listhash/libtar_listhash.h
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
     7
-LIBTAR_LIBS	= ../lib/libtar.a
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
     8
+LIBTAR_LIBS	= ../lib/libtar.so
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
     9
 ALL		= libtar
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    10
 
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    11
 
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    12
--- libtar-1.2.11/lib/Makefile.in.orig	2007-07-15 00:30:49.037594610 +0700
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    13
+++ libtar-1.2.11/lib/Makefile.in	2007-07-15 00:36:33.391346883 +0700
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    14
@@ -56,8 +56,8 @@
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    15
 		  ${srcdir}/libtar.h \
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    16
 		  ${srcdir}/internal.h \
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    17
 		  ../listhash/libtar_listhash.h
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    18
-LIBTAR_LIBS	= ./libtar.a
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    19
-ALL		= libtar.a
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    20
+LIBTAR_LIBS	= ./libtar.so
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    21
+ALL		= libtar.so
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    22
 
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    23
 DISTCLEANFILES	= ../listhash/libtar_listhash.h \
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    24
 		  ../listhash/libtar_list.c \
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    25
@@ -68,14 +68,13 @@
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    26
 
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    27
 .PHONY: clean distclean install
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    28
 
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    29
-libtar.a: ${LIBTAR_OBJS} ${LIBOBJS}
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    30
-	${AR} rc libtar.a ${LIBTAR_OBJS} ${LIBOBJS}
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    31
-	${RANLIB} libtar.a
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    32
+libtar.so: ${LIBTAR_OBJS} ${LIBOBJS}
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    33
+	$(CC) -G -o libtar.so ${LIBTAR_OBJS} ${LIBOBJS}
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    34
 
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    35
 ${LIBTAR_OBJS}: ${LIBTAR_HDRS}
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    36
 
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    37
 .c.o:
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    38
-	${CC} ${CFLAGS} ${CPPFLAGS} -c -o $@ $<
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    39
+	${CC} -KPIC ${CFLAGS} ${CPPFLAGS} -c -o $@ $<
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    40
 
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    41
 clean:
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    42
 	rm -f *~ *.o ${ALL} core
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    43
@@ -85,7 +84,7 @@
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    44
 
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    45
 install: ${ALL}
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    46
 	${MKDIR} ${DESTDIR}${libdir}
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    47
-	${INSTALL_DATA} libtar.a ${DESTDIR}${libdir}
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    48
+	${INSTALL_DATA} libtar.so ${DESTDIR}${libdir}
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    49
 	${MKDIR} ${DESTDIR}${includedir}
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    50
 	${INSTALL_DATA} ${srcdir}/libtar.h ${DESTDIR}${includedir}
eed15552a496 2007-07-15 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    51
 	${INSTALL_DATA} ../listhash/libtar_listhash.h ${DESTDIR}${includedir}