$OpenBSD: patch-config_c,v 1.1 2001/03/12 16:21:17 wilfried Exp $
--- config.c.orig	Fri Jan 20 21:45:51 1995
+++ config.c	Mon Mar 12 17:21:35 2001
@@ -2,6 +2,7 @@
 #include	<stdio.h>
 #include	<sys/stat.h>
 #include	<signal.h>
+#include <stdlib.h>
 
 /*#define DEBUG		/* Provides extra debugging info */
 
@@ -64,6 +65,7 @@ char *argv[];
 #else
 	cflags[0]='\0';
 #endif
+	strcpy(cflags,getenv("CFLAGS"));
 	ldflags[0]='\0';
 
 #define INCLUDE "/usr/include/"
@@ -90,8 +92,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") )
