work in progress osx 10.6 build cleanups

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15861 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2009-12-09 21:35:01 +00:00
parent 91d886ec7b
commit 5e7986bf9b
1 changed files with 20 additions and 0 deletions

View File

@ -105,6 +105,9 @@ if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
SOLINK="-Bdynamic -dy -G"
elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then
case "$host" in
*darwin10.*)
SOLINK="-dynamic -force-flat-namespace"
;;
*darwin*)
SOLINK="-dynamic -bundle -force-flat-namespace"
;;
@ -182,6 +185,13 @@ elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then
APR_ADDTO(SWITCH_AM_CFLAGS, -Werror)
if test "${enable_64}" = "yes"; then
LIBS="$LIBS -m64"
case "$host" in
*darwin10.*)
APR_ADDTO(CFLAGS, -arch x86_64)
APR_ADDTO(LDFLAGS, -arch x86_64)
APR_ADDTO(CXXFLAGS, -arch x86_64)
;;
esac
fi
fi
@ -308,6 +318,16 @@ ESL_LDFLAGS=
PLATFORM_CORE_DEPLIBS=
# tweak platform specific flags
case "$host" in
*darwin10.*)
APR_ADDTO(SWITCH_AM_CFLAGS, -DMACOSX)
APR_ADDTO(CFLAGS, -pipe -no-cpp-precomp)
APR_ADDTO(LDFLAGS, -pipe -bind_at_load)
APR_ADDTO(CXXFLAGS, -pipe)
APR_REMOVEFROM(SWITCH_AM_CFLAGS, -fPIC)
if test "x$enable_core_odbc_support" != "xno"; then
APR_ADDTO(PLATFORM_CORE_DEPLIBS, --framework CoreFoundation)
fi
;;
*darwin*)
APR_ADDTO(SWITCH_AM_CFLAGS, -DMACOSX)
APR_REMOVEFROM(SWITCH_AM_CFLAGS, -fPIC)