diff options
Diffstat (limited to 'ext/ripper/extconf.rb')
-rw-r--r-- | ext/ripper/extconf.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/ripper/extconf.rb b/ext/ripper/extconf.rb index 6b44073300..a41a6af2d8 100644 --- a/ext/ripper/extconf.rb +++ b/ext/ripper/extconf.rb @@ -12,8 +12,10 @@ def main end $objs = %w(ripper.o) $cleanfiles.concat %w(ripper.y ripper.c ripper.E ripper.output eventids1.c eventids2table.c) - $CPPFLAGS += ' -DRIPPER' - $CPPFLAGS += ' -DRIPPER_DEBUG' if $debug + $defs << '-DRIPPER' + $defs << '-DRIPPER_DEBUG' if $debug + $VPATH << '$(topdir)' << '$(top_srcdir)' + $INCFLAGS << ' -I$(topdir) -I$(top_srcdir)' create_makefile 'ripper' end |