diff --git a/Makefile b/Makefile index 2078311..57ff7b7 100644 --- a/Makefile +++ b/Makefile @@ -39,7 +39,7 @@ ALL_TOOLS = $(PXCHAINS) CFLAGS+=$(USER_CFLAGS) $(MAC_CFLAGS) -CFLAGS_MAIN=-DLIB_DIR=\"$(libdir)\" -DINSTALL_PREFIX=\"$(prefix)\" -DDLL_NAME=\"$(LDSO_PATHNAME)\" +CFLAGS_MAIN=-DLIB_DIR=\"$(libdir)\" -DSYSCONFDIR=\"$(sysconfdir)\" -DDLL_NAME=\"$(LDSO_PATHNAME)\" all: $(ALL_LIBS) $(ALL_TOOLS) diff --git a/src/main.c b/src/main.c index 6f3c0f0..7e3b8f0 100644 --- a/src/main.c +++ b/src/main.c @@ -121,8 +121,8 @@ int main(int argc, char *argv[]) { if(check_path(path)) goto have; - // priority 4: $INSTALL_PREFIX/etc/proxychains.conf - path = INSTALL_PREFIX "/etc/" PROXYCHAINS_CONF_FILE; + // priority 4: $SYSCONFDIR/proxychains.conf + path = SYSCONFDIR "/" PROXYCHAINS_CONF_FILE; if(check_path(path)) goto have;