better Mac detection
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4569 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
2067549f74
commit
6ae16d1523
|
@ -62,7 +62,7 @@ if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
||||||
SOLINK="-Bdynamic -dy -G"
|
SOLINK="-Bdynamic -dy -G"
|
||||||
elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then
|
elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then
|
||||||
case "$host" in
|
case "$host" in
|
||||||
*-darwin*)
|
*darwin*)
|
||||||
SOLINK="-dynamic -bundle -force-flat-namespace"
|
SOLINK="-dynamic -bundle -force-flat-namespace"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
@ -76,7 +76,7 @@ fi
|
||||||
# set DYNAMIC_LIB_EXTEN
|
# set DYNAMIC_LIB_EXTEN
|
||||||
# we should really be using libtool so we don't need to do this
|
# we should really be using libtool so we don't need to do this
|
||||||
case "$host" in
|
case "$host" in
|
||||||
*-darwin*)
|
*darwin*)
|
||||||
DYNAMIC_LIB_EXTEN="dylib"
|
DYNAMIC_LIB_EXTEN="dylib"
|
||||||
;;
|
;;
|
||||||
*cygwin* | *mingw*)
|
*cygwin* | *mingw*)
|
||||||
|
@ -101,7 +101,7 @@ fi
|
||||||
|
|
||||||
# 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)
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue