openbsd-ports/www/ruby-passenger/patches/patch-build_config_rb
william cb29cc2d52 Update to passenger 3.0.7
Ignore EINVAL from sigaltstack, seems to be what ruby itself does in 1.9

committing on behalf of jeremy@, who did all the work,
tested on i386 and tested packaging on amd64.  All so I can commit a
simple nginx update... THANKS.

ok jasper
2011-05-17 03:25:18 +00:00

16 lines
797 B
Plaintext

$OpenBSD: patch-build_config_rb,v 1.2 2011/05/17 03:25:18 william Exp $
--- build/config.rb.orig Sun Dec 5 11:54:35 2010
+++ build/config.rb Wed Apr 27 10:30:11 2011
@@ -25,9 +25,9 @@ OPTIMIZE = boolean_option("OPTIMIZE")
CC = string_option("CC", "gcc")
CXX = string_option("CXX", "g++")
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.