add some helpers to build 64 bit on solaris amd 64
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5536 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
cc89707536
commit
6d45f5f5cc
|
@ -117,6 +117,10 @@ case "$host" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Enable debugging
|
||||||
|
AC_ARG_ENABLE(64,
|
||||||
|
[AC_HELP_STRING([--enable-64],[build with 64 bit support])],[enable_64="$enable_64"],[enable_64="yes"])
|
||||||
|
|
||||||
# tweak compiler specific flags
|
# tweak compiler specific flags
|
||||||
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
||||||
APR_ADDTO(SWITCH_AM_CFLAGS, -KPIC)
|
APR_ADDTO(SWITCH_AM_CFLAGS, -KPIC)
|
||||||
|
@ -126,6 +130,10 @@ if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
||||||
APR_ADDTO(SWITCH_AM_CXXFLAGS, "-features=extensions")
|
APR_ADDTO(SWITCH_AM_CXXFLAGS, "-features=extensions")
|
||||||
|
|
||||||
APR_ADDTO(SWITCH_AM_LDFLAGS, -R${prefix}/lib)
|
APR_ADDTO(SWITCH_AM_LDFLAGS, -R${prefix}/lib)
|
||||||
|
if test "${enable_64}" = "yes"; then
|
||||||
|
APR_ADDTO(SWITCH_AM_CFLAGS, -m64)
|
||||||
|
APR_ADDTO(SWITCH_AM_LDFLAGS, -L/opt/csw/lib/amd64)
|
||||||
|
fi
|
||||||
elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then
|
elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then
|
||||||
APR_ADDTO(SWITCH_AM_CFLAGS, -fPIC)
|
APR_ADDTO(SWITCH_AM_CFLAGS, -fPIC)
|
||||||
APR_ADDTO(SWITCH_AM_CXXFLAGS, -fPIC)
|
APR_ADDTO(SWITCH_AM_CXXFLAGS, -fPIC)
|
||||||
|
|
Loading…
Reference in New Issue