[Freeswitch-svn] [commit] r11310 - freeswitch/trunk

FreeSWITCH SVN mikej at freeswitch.org
Tue Jan 20 08:29:32 PST 2009


Author: mikej
Date: Tue Jan 20 10:29:32 2009
New Revision: 11310

Log:
fix esl solaris build (FSBUILD-104)

Modified:
   freeswitch/trunk/Makefile.am
   freeswitch/trunk/configure.in

Modified: freeswitch/trunk/Makefile.am
==============================================================================
--- freeswitch/trunk/Makefile.am	(original)
+++ freeswitch/trunk/Makefile.am	Tue Jan 20 10:29:32 2009
@@ -168,7 +168,7 @@
 freeswitch_SOURCES = src/switch.c
 nodist_freeswitch_SOURCES = src/include/switch_version.h
 fs_cli_CFLAGS = $(AM_CFLAGS) -Ilibs/esl/src/include 
-fs_cli_LDFLAGS = $(AM_LDFLAGS) -lpthread
+fs_cli_LDFLAGS = $(AM_LDFLAGS) -lpthread $(ESL_LDFLAGS)
 freeswitch_CFLAGS = $(AM_CFLAGS) $(CORE_CFLAGS)
 freeswitch_LDFLAGS = $(AM_LDFLAGS) -rpath $(libdir)
 freeswitch_LDADD = libfreeswitch.la libs/apr/libapr-1.la

Modified: freeswitch/trunk/configure.in
==============================================================================
--- freeswitch/trunk/configure.in	(original)
+++ freeswitch/trunk/configure.in	Tue Jan 20 10:29:32 2009
@@ -174,7 +174,7 @@
 
 AM_CONDITIONAL([WANT_DEBUG],[test "${enable_debug}" = "yes"])
 
-
+ESL_LDFLAGS=
 # tweak platform specific flags
 case "$host" in
     *darwin*)
@@ -183,6 +183,7 @@
     ;;
     *-solaris2*)
         APR_ADDTO(SWITCH_AM_CFLAGS, -DPATH_MAX=2048)
+        APR_ADDTO(ESL_LDFLAGS, -lnsl)
     ;;
     *bsd*)
         APR_ADDTO(SWITCH_AM_CFLAGS, -I/usr/local/include)
@@ -194,6 +195,7 @@
 AC_SUBST(SWITCH_AM_CFLAGS)
 AC_SUBST(SWITCH_AM_CXXFLAGS)
 AC_SUBST(SWITCH_AM_LDFLAGS)
+AC_SUBST(ESL_LDFLAGS)
 AC_SUBST(SOLINK)
 AC_SUBST(DYNAMIC_LIB_EXTEN)
 



More information about the Freeswitch-svn mailing list