$OpenBSD: patch-configure_in,v 1.1 2013/01/28 15:38:31 stsp Exp $
--- configure.in.orig	Mon Jan 28 16:04:30 2013
+++ configure.in	Mon Jan 28 16:06:54 2013
@@ -62,15 +62,12 @@ AC_CHECK_LIB(socket, socket, AC_DEFINE(HAVE_SOCKET) LI
 
 if test "$use_debug" = "yes"; then
 	CFLAGS="${CFLAGS} -g -DENABLE_DEBUG"
-else
-	CFLAGS="${CFLAGS} -O3"
 fi
 
 # Choosing the target
 TARGET="static"
 if test "$build_shared" = "yes"; then
-	CFLAGS="$CFLAGS -fpic"
-	TARGET="shared"
+	TARGET="static shared"
 fi
 
 if test "$use_ipv6" = "yes"; then
