$OpenBSD: patch-build_config_rb,v 1.4 2013/05/07 23:20:11 jeremy Exp $
--- build/config.rb.orig	Wed Dec 31 16:00:00 1969
+++ build/config.rb	Fri May  3 17:28:38 2013
@@ -26,9 +26,9 @@ CC       = string_option("CC", "gcc")
 CXX      = string_option("CXX", "g++")
 # TODO: consider -fcommon
 if OPTIMIZE
-	OPTIMIZATION_FLAGS = "#{PlatformInfo.debugging_cflags} -O2 -DBOOST_DISABLE_ASSERTS".strip
+	OPTIMIZATION_FLAGS = "#{ENV['CFLAGS']} -DBOOST_DISABLE_ASSERTS".strip
 else
-	OPTIMIZATION_FLAGS = "#{PlatformInfo.debugging_cflags} -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS".strip
+	OPTIMIZATION_FLAGS = "#{ENV['CFLAGS']} #{PlatformInfo.debugging_cflags} -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS".strip
 end
 
 # Extra compiler flags that should always be passed to the C/C++ compiler.
@@ -43,4 +43,4 @@ EXTRA_CXXFLAGS << " #{OPTIMIZATION_FLAGS}" if !OPTIMIZ
 EXTRA_LDFLAGS  = ""
 
 # Whether to use the vendored libev or the system one.
-USE_VENDORED_LIBEV = boolean_option("USE_VENDORED_LIBEV", true)
\ No newline at end of file
+USE_VENDORED_LIBEV = boolean_option("USE_VENDORED_LIBEV", false)
