Ticket #13674: patch-Makefile.in

File patch-Makefile.in, 2.0 KB (added by darren.bane@…, 17 years ago)

Replacement for net/tsocks/files/patch-Makefile.in

Line 
1--- Makefile.in.orig    2007-03-28 12:26:27.000000000 +0100
2+++ Makefile.in 2007-03-28 12:21:01.000000000 +0100
3@@ -1,6 +1,7 @@
4 # Makefile used by configure to create real Makefile
5 
6 CC=@CC@
7+SHLIB_EXT=@SHLIB_EXT@
8 prefix=@prefix@
9 exec_prefix = @exec_prefix@
10 libexecdir = @libexecdir@
11@@ -24,12 +25,13 @@
12 SCRIPT = tsocks
13 SHLIB_MAJOR = 1
14 SHLIB_MINOR = 8
15-SHLIB = ${LIB_NAME}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
16+SHLIB = ${LIB_NAME}.${SHLIB_EXT}.${SHLIB_MAJOR}.${SHLIB_MINOR}
17 DEADPOOL_O = @DEADPOOL_O@
18 
19 INSTALL = @INSTALL@
20 INSTALL_DATA = @INSTALL_DATA@
21 CFLAGS = @CFLAGS@
22+LDFLAGS = @LDFLAGS@
23 INCLUDES = -I.
24 LIBS = @LIBS@
25 SPECIALLIBS = @SPECIALLIBS@
26@@ -49,11 +51,11 @@
27        ${SHCC} ${CFLAGS} ${INCLUDES} -o ${INSPECT} ${INSPECT}.c ${COMMON}.o ${LIBS}
28 
29 ${SAVE}: ${SAVE}.c
30-       ${SHCC} ${CFLAGS} ${INCLUDES} -static -o ${SAVE} ${SAVE}.c
31+       ${SHCC} ${CFLAGS} ${INCLUDES} -o ${SAVE} ${SAVE}.c
32 
33 ${SHLIB}: ${OBJS} ${COMMON}.o ${PARSER}.o ${DEADPOOL_O}
34-       ${SHCC} ${CFLAGS} ${INCLUDES} -nostdlib -shared -o ${SHLIB} ${OBJS} ${COMMON}.o ${PARSER}.o ${DEADPOOL_O} ${DYNLIB_FLAGS} ${SPECIALLIBS} ${LIBS}
35-       ln -sf ${SHLIB} ${LIB_NAME}.so
36+       ${SHCC} ${CFLAGS} ${INCLUDES} ${LDFLAGS} -o ${SHLIB} ${OBJS} ${COMMON}.o ${PARSER}.o ${DEADPOOL_O}
37+       ln -sf ${SHLIB} ${LIB_NAME}.${SHLIB_EXT}
38 
39 %.so: %.c
40        ${SHCC} ${CFLAGS} ${INCLUDES} -c ${CC_SWITCHES} $< -o $@
41@@ -69,8 +71,8 @@
42 
43 installlib:
44        ${MKINSTALLDIRS} "${DESTDIR}${libdir}"
45-       ${INSTALL} ${SHLIB} ${DESTDIR}${libdir}/${LIB_NAME}.so.${SHLIB_MAJOR}
46-       ln -sf ${LIB_NAME}.so.${SHLIB_MAJOR} ${DESTDIR}${libdir}/${LIB_NAME}.so
47+       ${INSTALL} ${SHLIB} ${DESTDIR}${libdir}/${LIB_NAME}.${SHLIB_EXT}.${SHLIB_MAJOR}
48+       ln -sf ${LIB_NAME}.${SHLIB_EXT}.${SHLIB_MAJOR} ${DESTDIR}${libdir}/${LIB_NAME}.${SHLIB_EXT}
49 
50 installman:
51        ${MKINSTALLDIRS} "${DESTDIR}${mandir}/man1"
52@@ -81,7 +83,7 @@
53        ${INSTALL_DATA} tsocks.conf.5 ${DESTDIR}${mandir}/man5/
54       
55 clean:
56-       -rm -f *.so *.so.* *.o *~ ${TARGETS}
57+       -rm -f *.so *.so.* *.dylib *.dylib.* *.o *~ ${TARGETS}
58 
59 distclean: clean
60        -rm -f config.cache config.log config.h Makefile \