]> sjero.net Git - linphone/commitdiff
Fix library dependencies linking on Debian based systems.
authorGhislain MARY <ghislain.mary@belledonne-communications.com>
Fri, 18 Jan 2013 15:04:58 +0000 (16:04 +0100)
committerGhislain MARY <ghislain.mary@belledonne-communications.com>
Fri, 18 Jan 2013 15:04:58 +0000 (16:04 +0100)
configure.ac
console/Makefile.am
gtk/Makefile.am

index 1d8f92278e81e4d598fb275a9eda0d3831ec3a9c..10370968c68c8abb60b24bc84080148f809d39f9 100644 (file)
@@ -84,6 +84,19 @@ IT_PROG_INTLTOOL([0.40], [no-xml])
 AM_CONDITIONAL(BUILD_TESTS,test x$build_tests != xno)
 dnl Initialize libtool
 LT_INIT([win32-dll shared disable-static])
+dnl Enable library dependencies linking
+AC_ARG_ENABLE(deplibs-link,
+      [AS_HELP_STRING([--disable-deplibs-link ], [Disable library dependencies linking (might break builds)])],
+      [enable_deplibs_linking="$enableval"],
+      [enable_deplibs_linking="yes"])
+AC_MSG_NOTICE([Enable library dependencies linking: $enable_interlib_deps])
+if test "${enable_deplibs_linking}" == "yes"; then
+      link_all_deplibs=yes
+      link_all_deplibs_CXX=yes
+else
+      link_all_deplibs=no
+      link_all_deplibs_CXX=no
+fi
 
 AC_CONFIG_COMMANDS([libtool-hacking],[
 if test "$mingw_found" = "yes" ; then
index 23a7635d1713109b23aea8fc625ec42519fe953c..82ce998e50dc671d08ad56547a8dbbf70cd1817a 100644 (file)
@@ -26,11 +26,8 @@ endif
 
 linphonec_SOURCES=linphonec.c linphonec.h commands.c
 linphonec_CFLAGS=$(COMMON_CFLAGS) $(CONSOLE_FLAGS)
-linphonec_LDADD=$(top_builddir)/coreapi/liblinphone.la $(READLINE_LIBS)  \
-               $(MEDIASTREAMER_LIBS) \
-               $(ORTP_LIBS) \
-               $(SPEEX_LIBS) \
-               $(OSIP_LIBS) \
+linphonec_LDADD=$(top_builddir)/coreapi/liblinphone.la \
+               $(READLINE_LIBS)  \
                $(X11_LIBS)
 
 if BUILD_WIN32
index 78f5d0de7e22cc5b851500d0d3a2cbe9f53a8ad3..1caded7c6c4537df3a53feeac4426178bbe45fbc 100644 (file)
@@ -53,10 +53,8 @@ linphone_SOURCES+=   \
                        setupwizard.c
 endif
 
-linphone_LDADD=$(ORTP_LIBS) \
-               $(MEDIASTREAMER_LIBS) \
-               $(top_builddir)/coreapi/liblinphone.la \
-                       $(LIBGTK_LIBS) $(NOTIFY1_LIBS) $(NOTIFY4_LIBS) $(LIBGTKMAC_LIBS) $(INTLLIBS) 
+linphone_LDADD=        $(top_builddir)/coreapi/liblinphone.la \
+               $(LIBGTK_LIBS) $(NOTIFY1_LIBS) $(NOTIFY4_LIBS) $(LIBGTKMAC_LIBS) $(INTLLIBS)
 
 
 if BUILD_WIN32