pass dll_name to proxychains app, makes it easier to port to MAC

pull/3/head
rofl0r 2012-01-27 19:31:01 +01:00
parent 2acdcd9707
commit 526fb8b410
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ ALL_TOOLS = $(PXCHAINS)
-include config.mak
CFLAGS+=$(USER_CFLAGS)
CFLAGS_MAIN=-DLIB_DIR=\"$(libdir)\" -DINSTALL_PREFIX=\"$(prefix)\"
CFLAGS_MAIN=-DLIB_DIR=\"$(libdir)\" -DINSTALL_PREFIX=\"$(prefix)\" -DDLL_NAME=\"$(LDSO_PATHNAME)\"
all: $(ALL_LIBS) $(ALL_TOOLS)

View File

@ -42,7 +42,7 @@ int check_path(char *path) {
return access(path, R_OK) != -1;
}
static const char *dll_name = "libproxychains4.so";
static const char *dll_name = DLL_NAME;
static char own_dir[256];
static const char *dll_dirs[] = {