fix solaris build
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15066 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
3cd9c624c8
commit
90ef9f0074
|
@ -108,6 +108,22 @@ else
|
||||||
CXXFLAGS=${CXXFLAGS-"-g -O2"}
|
CXXFLAGS=${CXXFLAGS-"-g -O2"}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
AC_DEFUN([REMOVE_FROM_VAR],[
|
||||||
|
new_val=""
|
||||||
|
removed=0
|
||||||
|
for i in $$1; do
|
||||||
|
if test "x$i" != "x$2"; then
|
||||||
|
new_val="$new_val $i"
|
||||||
|
else
|
||||||
|
removed=1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if test $removed = "1"; then
|
||||||
|
echo " removed \"$2\" from $1"
|
||||||
|
$1=$new_val
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
AC_C_CONST
|
AC_C_CONST
|
||||||
AC_C_INLINE
|
AC_C_INLINE
|
||||||
AC_C_VOLATILE
|
AC_C_VOLATILE
|
||||||
|
@ -344,6 +360,7 @@ sun)
|
||||||
COMP_VENDOR_CFLAGS="-native -fast $COMP_VENDOR_CFLAGS"
|
COMP_VENDOR_CFLAGS="-native -fast $COMP_VENDOR_CFLAGS"
|
||||||
fi
|
fi
|
||||||
COMP_VENDOR_LDFLAGS=
|
COMP_VENDOR_LDFLAGS=
|
||||||
|
REMOVE_FROM_VAR(CFLAGS, -Xc)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
COMP_VENDOR_CFLAGS="-std=c99 -Wall -Wunused-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes $COMP_VENDOR_CFLAGS"
|
COMP_VENDOR_CFLAGS="-std=c99 -Wall -Wunused-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes $COMP_VENDOR_CFLAGS"
|
||||||
|
|
Loading…
Reference in New Issue