$OpenBSD: patch-configure,v 1.6 2016/01/30 09:16:41 ajacoutot Exp $

Fix relocation errors on (at least) sparc64.

We don't want extra debug flags in regular builds.

--- configure.orig	Thu Jan 28 21:02:21 2016
+++ configure	Sat Jan 30 10:11:42 2016
@@ -7068,6 +7068,7 @@ else
 	bsdi4.*)	CCPIC="-fPIC" ;;
 	bsdi*)		CCPIC="" ;;
 	darwin*)	CCPIC="-fPIC" ;;
+	openbsd*)	CCPIC="-fPIC" ;;
 	# Could also use -fpic, depending on the number of symbol references
 	solaris*)	CCPIC="-fPIC" ;;
 	cygwin*)	CCPIC="" ;;
@@ -7754,7 +7755,7 @@ if test x$GCC = xyes ; then
   if $CC --version | grep '^2\.96$' 1>/dev/null 2>&1; then
     true
   else
-    CFLAGS="$CFLAGS -ggdb3"
+    CFLAGS="$CFLAGS"
   fi
   # FIXME: It would be better to actually test if this option works and/or is needed.
   # Or perhaps use -funsigned-char.
