Don't add -OPT:Olimit to CFLAGS on AIX, SunOS, HP-UX or IRIX.  It breaks them.
diff --git a/configure b/configure
index 7098353..494bef9 100755
--- a/configure
+++ b/configure
@@ -5751,6 +5751,11 @@
 	# environment?
         Darwin*)
 	    ;;
+        # XXX thankfully this useless troublemaker of a flag has been
+        # eradicated in the 3.x line.  For now, make sure it isn't picked
+        # up by any of our other platforms that use CC.
+        AIX*|SunOS*|HP-UX*|IRIX*)
+            ;;
         *)
 	    BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
 	    ;;