try to fix osx build when you --enable-core-odbc-support
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11323 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
6ed61eaaaa
commit
9a9ba4c37e
|
@ -153,7 +153,7 @@ CORE_LIBS += libs/srtp/libsrtp.la $(RESAMPLE_LIB)
|
||||||
|
|
||||||
lib_LTLIBRARIES = libfreeswitch.la
|
lib_LTLIBRARIES = libfreeswitch.la
|
||||||
libfreeswitch_la_CFLAGS = $(CORE_CFLAGS) $(AM_CFLAGS)
|
libfreeswitch_la_CFLAGS = $(CORE_CFLAGS) $(AM_CFLAGS)
|
||||||
libfreeswitch_la_LDFLAGS = -version-info 1:0:0 $(AM_LDFLAGS)
|
libfreeswitch_la_LDFLAGS = -version-info 1:0:0 $(AM_LDFLAGS) $(PLATFORM_CORE_DEPLIBS)
|
||||||
libfreeswitch_la_LIBADD = $(CORE_LIBS)
|
libfreeswitch_la_LIBADD = $(CORE_LIBS)
|
||||||
libfreeswitch_la_DEPENDENCIES = $(BUILT_SOURCES)
|
libfreeswitch_la_DEPENDENCIES = $(BUILT_SOURCES)
|
||||||
nodist_libfreeswitch_la_SOURCES = src/include/switch_version.h src/include/switch_swigable_cpp.h
|
nodist_libfreeswitch_la_SOURCES = src/include/switch_version.h src/include/switch_swigable_cpp.h
|
||||||
|
|
|
@ -175,11 +175,15 @@ fi
|
||||||
AM_CONDITIONAL([WANT_DEBUG],[test "${enable_debug}" = "yes"])
|
AM_CONDITIONAL([WANT_DEBUG],[test "${enable_debug}" = "yes"])
|
||||||
|
|
||||||
ESL_LDFLAGS=
|
ESL_LDFLAGS=
|
||||||
|
PLATFORM_CORE_DEPLIBS=
|
||||||
# tweak platform specific flags
|
# tweak platform specific flags
|
||||||
case "$host" in
|
case "$host" in
|
||||||
*darwin*)
|
*darwin*)
|
||||||
APR_ADDTO(SWITCH_AM_CFLAGS, -DMACOSX)
|
APR_ADDTO(SWITCH_AM_CFLAGS, -DMACOSX)
|
||||||
APR_REMOVEFROM(SWITCH_AM_CFLAGS, -fPIC)
|
APR_REMOVEFROM(SWITCH_AM_CFLAGS, -fPIC)
|
||||||
|
if test "x$enable_core_odbc_support" != "xno"; then
|
||||||
|
APR_ADDTO(PLATFORM_CORE_DEPLIBS, --framework CoreFoundation)
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
*-solaris2*)
|
*-solaris2*)
|
||||||
APR_ADDTO(SWITCH_AM_CFLAGS, -DPATH_MAX=2048)
|
APR_ADDTO(SWITCH_AM_CFLAGS, -DPATH_MAX=2048)
|
||||||
|
@ -196,6 +200,7 @@ AC_SUBST(SWITCH_AM_CFLAGS)
|
||||||
AC_SUBST(SWITCH_AM_CXXFLAGS)
|
AC_SUBST(SWITCH_AM_CXXFLAGS)
|
||||||
AC_SUBST(SWITCH_AM_LDFLAGS)
|
AC_SUBST(SWITCH_AM_LDFLAGS)
|
||||||
AC_SUBST(ESL_LDFLAGS)
|
AC_SUBST(ESL_LDFLAGS)
|
||||||
|
AC_SUBST(PLATFORM_CORE_DEPLIBS)
|
||||||
AC_SUBST(SOLINK)
|
AC_SUBST(SOLINK)
|
||||||
AC_SUBST(DYNAMIC_LIB_EXTEN)
|
AC_SUBST(DYNAMIC_LIB_EXTEN)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue