From ad67cd708f92b4a4a8a0c6adfbf59c1c46ef3ae7 Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Thu, 15 May 2014 20:43:48 +0200 Subject: [PATCH] Only include debug info when DEBUG is set. --- ext/c/extconf.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/c/extconf.rb b/ext/c/extconf.rb index 469c1a8..a482b69 100644 --- a/ext/c/extconf.rb +++ b/ext/c/extconf.rb @@ -5,9 +5,9 @@ have_header('ruby.h') $CFLAGS << ' -Wextra -Wall -pedantic' if ENV['DEBUG'] - $CFLAGS << ' -O0' + $CFLAGS << ' -O0 -g' else - $CFLAGS << ' -O3 -g' + $CFLAGS << ' -O3' end create_makefile('liboga/liboga')