dirty hack to try to fix solaris build
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16542 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
91814a3543
commit
d47c147cdb
|
@ -363,6 +363,7 @@ if test "$ac_cv_found_odbc" = "yes" ; then
|
|||
enable_core_odbc_support="yes"
|
||||
fi
|
||||
|
||||
LUA_LDFLAGS=
|
||||
ESL_LDFLAGS=
|
||||
PLATFORM_CORE_DEPLIBS=
|
||||
# tweak platform specific flags
|
||||
|
@ -387,6 +388,7 @@ case "$host" in
|
|||
*-solaris2*)
|
||||
APR_ADDTO(SWITCH_AM_CFLAGS, -DPATH_MAX=2048)
|
||||
APR_ADDTO(ESL_LDFLAGS, -lnsl -lsocket)
|
||||
LUA_LDFLAGS="-lsendfile -lresolv -lsocket -lnsl -luuid"
|
||||
;;
|
||||
*bsd*)
|
||||
APR_ADDTO(SWITCH_AM_CFLAGS, -I/usr/local/include)
|
||||
|
@ -395,6 +397,7 @@ esac
|
|||
|
||||
APR_REMOVEFROM(SWITCH_AM_CXXFLAGS, -std=c99)
|
||||
|
||||
AC_SUBST(LUA_LDFLAGS)
|
||||
AC_SUBST(SWITCH_AM_CFLAGS)
|
||||
AC_SUBST(SWITCH_ANSI_CFLAGS)
|
||||
AC_SUBST(SWITCH_AM_CXXFLAGS)
|
||||
|
|
|
@ -10,7 +10,7 @@ mod_LTLIBRARIES = mod_lua.la
|
|||
mod_lua_la_SOURCES = mod_lua.cpp freeswitch_lua.cpp mod_lua_wrap.cpp
|
||||
mod_lua_la_CXXFLAGS = -Ilua $(AM_CPPFLAGS)
|
||||
mod_lua_la_LIBADD = $(switch_builddir)/libfreeswitch.la
|
||||
mod_lua_la_LDFLAGS = -avoid-version -module -no-undefined -shared -lm $(LIBLUA_A) $(SOLINK)
|
||||
mod_lua_la_LDFLAGS = -avoid-version -module -no-undefined -shared -lm $(LIBLUA_A) $(SOLINK) $(LUA_LDFLAGS)
|
||||
|
||||
BUILT_SOURCES = $(LIBLUA_A)
|
||||
$(mod_lua_la_SOURCES) : $(BUILT_SOURCES)
|
||||
|
|
Loading…
Reference in New Issue