Gentoo Archives: gentoo-commits

From: "Tim Harder (radhermit)" <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/proxychains/files: proxychains-4.7-makefile.patch
Date: Mon, 23 Jun 2014 17:38:34
Message-Id: 20140623173830.15A362004F@flycatcher.gentoo.org
1 radhermit 14/06/23 17:38:30
2
3 Added: proxychains-4.7-makefile.patch
4 Log:
5 Version bump to latest proxychains-ng release.
6
7 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
8
9 Revision Changes Path
10 1.1 net-misc/proxychains/files/proxychains-4.7-makefile.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/proxychains/files/proxychains-4.7-makefile.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/proxychains/files/proxychains-4.7-makefile.patch?rev=1.1&content-type=text/plain
14
15 Index: proxychains-4.7-makefile.patch
16 ===================================================================
17 --- proxychains-ng-4.7/Makefile
18 +++ proxychains-ng-4.7/Makefile
19 @@ -20,10 +20,8 @@
20 src/allocator_thread.o src/ip_type.o src/stringdump.o \
21 src/hostentdb.o src/hash.o src/debug.o
22
23 -CFLAGS += -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe
24 -NO_AS_NEEDED = -Wl,--no-as-needed
25 -LIBDL = -ldl
26 -LDFLAGS = -shared -fPIC $(NO_AS_NEEDED) $(LIBDL) -lpthread
27 +CFLAGS = -Wall -std=c99 -D_GNU_SOURCE
28 +LIBS = -ldl -lpthread
29 INC =
30 PIC = -fPIC
31 AR = $(CROSS_COMPILE)ar
32 @@ -33,11 +31,11 @@
33 LD_SET_SONAME = -Wl,-soname=
34 INSTALL_FLAGS = -D -m
35
36 -LDSO_PATHNAME = libproxychains4.$(LDSO_SUFFIX)
37 +LDSO_PATHNAME = libproxychains.$(LDSO_SUFFIX)
38
39 SHARED_LIBS = $(LDSO_PATHNAME)
40 ALL_LIBS = $(SHARED_LIBS)
41 -PXCHAINS = proxychains4
42 +PXCHAINS = proxychains
43 ALL_TOOLS = $(PXCHAINS)
44
45 -include config.mak
46 @@ -63,13 +61,13 @@
47 rm -f $(OBJS)
48
49 %.o: %.c
50 - $(CC) $(CFLAGS) $(CFLAGS_MAIN) $(INC) $(PIC) -c -o $@ $<
51 + $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_MAIN) $(INC) $(PIC) -c -o $@ $<
52
53 $(LDSO_PATHNAME): $(LOBJS)
54 - $(CC) $(LDFLAGS) $(LD_SET_SONAME)$(LDSO_PATHNAME) -o $@ $(LOBJS)
55 + $(CC) $(LDFLAGS) -shared $(PIC) $(LD_SET_SONAME)$(LDSO_PATHNAME) -o $@ $(LOBJS) $(LIBS)
56
57 $(ALL_TOOLS): $(OBJS)
58 - $(CC) src/main.o src/common.o -o $(PXCHAINS)
59 + $(CC) $(LDFLAGS) src/main.o src/common.o -o $(PXCHAINS) $(LIBS)
60
61
62 .PHONY: all clean install install-config