mirror of
https://github.com/rofl0r/proxychains-ng.git
synced 2024-12-22 12:18:47 +00:00
fix issues with pthread and dlsym symbols on ubuntu 12.04
for some reason, the linker needs --no-as-needed for both libdl and libpthread. closes #4 thanks to @tomsawyer for discovering this. the proposed -pthread change was not needed though, and this is a good thing since it seems not portable.
This commit is contained in:
parent
bddb79a286
commit
6f35888528
2
Makefile
2
Makefile
@ -18,7 +18,7 @@ OBJS = $(SRCS:.c=.o)
|
|||||||
LOBJS = src/core.o src/common.o src/libproxychains.o
|
LOBJS = src/core.o src/common.o src/libproxychains.o
|
||||||
|
|
||||||
CFLAGS += -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe -DTHREAD_SAFE
|
CFLAGS += -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe -DTHREAD_SAFE
|
||||||
LDFLAGS = -shared -fPIC -ldl -lpthread
|
LDFLAGS = -shared -fPIC -Wl,--no-as-needed -ldl -lpthread
|
||||||
INC =
|
INC =
|
||||||
PIC = -fPIC
|
PIC = -fPIC
|
||||||
AR = $(CROSS_COMPILE)ar
|
AR = $(CROSS_COMPILE)ar
|
||||||
|
Loading…
Reference in New Issue
Block a user