openbsd-ports/www/ruby-passenger/patches/patch-build_config_rb

16 lines
784 B
Plaintext
Raw Normal View History

$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")
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.