summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac14
-rw-r--r--toxcore/Makefile.inc5
2 files changed, 15 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 285c3ac5..64d53dec 100644
--- a/configure.ac
+++ b/configure.ac
@@ -10,6 +10,17 @@ AM_INIT_AUTOMAKE([1.10 -Wall])
10m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) 10m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
11AC_CONFIG_MACRO_DIR([m4]) 11AC_CONFIG_MACRO_DIR([m4])
12 12
13LIBTOXCORE_LT_VERSION=0:0:0
14dnl
15dnl current:revision:age
16dnl
17dnl current: increment if interfaces have been added, removed or changed
18dnl revision: increment if source code has changed, set to zero if current is
19dnl incremented
20dnl age: increment if interfaces have been added, set to zero if
21dnl interfaces have been removed or changed
22EXTRA_LT_LDFLAGS="-version-info $LIBTOXCORE_LT_VERSION"
23
13if test "x${prefix}" = "xNONE"; then 24if test "x${prefix}" = "xNONE"; then
14 prefix="${ac_default_prefix}" 25 prefix="${ac_default_prefix}"
15fi 26fi
@@ -106,6 +117,7 @@ case $host_os in
106 WIN32="yes" 117 WIN32="yes"
107 AC_MSG_WARN([nTox is not supported on $host_os yet, disabling]) 118 AC_MSG_WARN([nTox is not supported on $host_os yet, disabling])
108 BUILD_NTOX="no" 119 BUILD_NTOX="no"
120 EXTRA_LT_LDFLAGS="$EXTRA_LT_LDFLAGS -no-undefined"
109 ;; 121 ;;
110 *solaris*) 122 *solaris*)
111 LIBS="$LIBS -lssp -lsocket -lnsl" 123 LIBS="$LIBS -lssp -lsocket -lnsl"
@@ -118,6 +130,8 @@ case $host_os in
118esac 130esac
119AM_CONDITIONAL(WIN32, test "x$WIN32" = "xyes") 131AM_CONDITIONAL(WIN32, test "x$WIN32" = "xyes")
120 132
133AC_SUBST(EXTRA_LT_LDFLAGS)
134
121# Checks for libraries. 135# Checks for libraries.
122LIBSODIUM_LIBS= 136LIBSODIUM_LIBS=
123LIBSODIUM_LDFLAGS= 137LIBSODIUM_LDFLAGS=
diff --git a/toxcore/Makefile.inc b/toxcore/Makefile.inc
index 90912a59..da07db41 100644
--- a/toxcore/Makefile.inc
+++ b/toxcore/Makefile.inc
@@ -1,5 +1,3 @@
1LIBTOXCORE_VERSION = 0:0:0
2
3lib_LTLIBRARIES = libtoxcore.la 1lib_LTLIBRARIES = libtoxcore.la
4 2
5libtoxcore_la_include_HEADERS = \ 3libtoxcore_la_include_HEADERS = \
@@ -33,8 +31,7 @@ libtoxcore_la_CFLAGS = -I$(top_srcdir) \
33 -I$(top_srcdir)/toxcore \ 31 -I$(top_srcdir)/toxcore \
34 $(LIBSODIUM_CFLAGS) 32 $(LIBSODIUM_CFLAGS)
35 33
36libtoxcore_la_LDFLAGS = -version-info $(LIBTOXCORE_VERSION) \ 34libtoxcore_la_LDFLAGS = $(EXTRA_LT_LDFLAGS) \
37 -no-undefined \
38 $(LIBSODIUM_LDFLAGS) \ 35 $(LIBSODIUM_LDFLAGS) \
39 $(WINSOCK2_LIBS) 36 $(WINSOCK2_LIBS)
40 37