From d08f4520c6a328985c38c8725e4b9347091cf57d Mon Sep 17 00:00:00 2001 From: David Palm Date: Fri, 21 Nov 2014 10:14:12 +0100 Subject: [PATCH] Fix builds on osx (and elsewhere?) Set a global variable with the CXXFLAGS so that the make file generating code can see it. This is mimicking what the code already does for the LDFLAGS and it works for me. --- ext/capn_proto/extconf.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/capn_proto/extconf.rb b/ext/capn_proto/extconf.rb index 3f35273..f093538 100644 --- a/ext/capn_proto/extconf.rb +++ b/ext/capn_proto/extconf.rb @@ -14,6 +14,8 @@ compiler.std_flag, compiler.stdlib_flag].join(' ') +$CXXFLAGS = CONFIG['CXXFLAGS'] + if enable_config('debug') CONFIG['CFLAGS'] += " -O0 -ggdb3" else