From: Saverio Proto Date: Thu, 3 Apr 2014 12:38:18 +0000 (+0200) Subject: trying to fix linking issues X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=bdfa996a1b6f1f50f69b2ecad259b50756f44bf7;p=meshlink trying to fix linking issues --- diff --git a/configure.ac b/configure.ac index 32b618c5..eac66278 100644 --- a/configure.ac +++ b/configure.ac @@ -148,6 +148,7 @@ AS_IF([test "x$enable_hardening" != "xno"], ;; *) AX_CHECK_COMPILE_FLAG([-fPIE], [CPPFLAGS="$CPPFLAGS -fPIE"]) + AX_CHECK_COMPILE_FLAG([-fPIC], [CPPFLAGS="$CPPFLAGS -fPIC"]) AX_CHECK_LINK_FLAG([-pie], [LDFLAGS="$LDFLAGS -pie"]) ;; esac diff --git a/src/Makefile.am b/src/Makefile.am index 26d4474a..31dfae5e 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -109,7 +109,7 @@ libmeshlink_la_SOURCES = \ libmeshlink_la_CFLAGS = -fPIC libmeshlink_la_LIBADD = \ - protocol.o + protocol.o protocol_auth.o ## Conditionally compile device drivers diff --git a/src/have.h b/src/have.h index 85479f75..4d9a97bd 100644 --- a/src/have.h +++ b/src/have.h @@ -203,4 +203,7 @@ #define SLASH "/" #endif +#define CONFDIR "/etc/" +#define LOCALSTATEDIR "/var/" + #endif /* __TINC_SYSTEM_H__ */