From 526fb8b4106f97fce0445a32f54c9b279a9e1bf3 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Fri, 27 Jan 2012 19:31:01 +0100 Subject: [PATCH] pass dll_name to proxychains app, makes it easier to port to MAC --- Makefile | 2 +- src/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6914ece..178c8e6 100644 --- a/Makefile +++ b/Makefile @@ -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) diff --git a/src/main.c b/src/main.c index fa9b32a..629a5c3 100644 --- a/src/main.c +++ b/src/main.c @@ -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[] = {