$NetBSD: patch-configure,v 1.2 2012/09/11 17:13:45 asau Exp $

--- configure.orig	2012-09-05 14:03:06.000000000 +0000
+++ configure
@@ -1190,6 +1190,9 @@ else
     exit 1
 fi
 
+# hw/usb/hcd_ehci.c will not compile with -O3 optimization.
+CFLAGS=`echo "$CFLAGS" | sed -e 's,-O3,,'`
+
 # Consult white-list to determine whether to enable werror
 # by default.  Only enable by default for git builds
 z_version=`cut -f3 -d. $source_path/VERSION`
