$OpenBSD: patch-config_c,v 1.3 2007/09/16 20:58:19 jasper Exp $
--- config.c.orig	Sun Sep 16 21:53:52 2007
+++ config.c	Sun Sep 16 21:55:32 2007
@@ -66,6 +66,7 @@ char *argv[];
 #else
 	cflags[0]='\0';
 #endif
+	strcpy(cflags,getenv("CFLAGS"));
 	ldflags[0]='\0';
 
 #define INCLUDE "/usr/include/"
@@ -92,8 +93,6 @@ char *argv[];
 		solaris=1;
 		VERBOSE_PRINT("\tI see you are running Solaris.\n");
 	}
-	else
-		strcat(cflags, " -O");
 
 	/* Check for IRIX */
 	if ( grep("/usr/include", "unistd.h", "_getpty") )
