Better socket timeout and options support for Thrift C++

Summary: Also compile without degugging symbols for the linked library

Reviewed By: aditya


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664810 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/configure.ac b/lib/cpp/configure.ac
index d571ba0..2d30c59 100644
--- a/lib/cpp/configure.ac
+++ b/lib/cpp/configure.ac
@@ -80,4 +80,8 @@
 
 AC_PROG_LIBTOOL
 
+CFLAGS="-O2"
+
+CXXFLAGS="-O2"
+
 AC_OUTPUT(Makefile)