From e602dda02fc9affbdd846018ae8b05ce012e12e5 Mon Sep 17 00:00:00 2001 From: Kohei Suzuki Date: Sat, 14 Sep 2013 14:12:48 +0900 Subject: [PATCH] Honor RbConfig::MAKEFILE_CONFIG['CFLAGS'] --- ext/byebug/extconf.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/byebug/extconf.rb b/ext/byebug/extconf.rb index 9464a7409..ac7cb2421 100644 --- a/ext/byebug/extconf.rb +++ b/ext/byebug/extconf.rb @@ -8,7 +8,8 @@ end if RbConfig::MAKEFILE_CONFIG['CC'] =~ /gcc/ - $CFLAGS = '-Wall -Werror' + $CFLAGS ||= '' + $CFLAGS += ' -Wall -Werror' $CFLAGS += ' -gdwarf-2 -g3' if ENV['debug'] end