From 6d45f5f5ccf2c8c14a54c28c0e7eb0a78a0a1d5f Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Mon, 16 Jul 2007 15:08:38 +0000 Subject: [PATCH] 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 --- configure.in | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure.in b/configure.in index 7e05ba9ebd..88d653f645 100644 --- a/configure.in +++ b/configure.in @@ -117,6 +117,10 @@ case "$host" in ;; 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 if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then 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_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 APR_ADDTO(SWITCH_AM_CFLAGS, -fPIC) APR_ADDTO(SWITCH_AM_CXXFLAGS, -fPIC)