2011-12-13 13:38:17 -05:00
|
|
|
$OpenBSD: patch-build_config_rb,v 1.3 2011/12/13 18:38:17 jeremy Exp $
|
|
|
|
--- build/config.rb.orig Thu Jan 1 01:00:00 1970
|
|
|
|
+++ build/config.rb Tue Nov 15 23:50:42 2011
|
|
|
|
@@ -26,9 +26,9 @@ CC = string_option("CC", "gcc")
|
2010-11-08 18:47:37 -05:00
|
|
|
CXX = string_option("CXX", "g++")
|
2011-12-13 13:38:17 -05:00
|
|
|
# TODO: consider -fcommon
|
2010-11-08 18:47:37 -05:00
|
|
|
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.
|