Skip to content

Commit

Permalink
Ruby-2.0.0-p247 does no longer mix CFLAGS and CXXFLAGS.
Browse files Browse the repository at this point in the history
So we need to use it properly too.

See bug https://bugs.ruby-lang.org/issues/6504#change-38019
  • Loading branch information
larskanis committed Jun 28, 2013
1 parent 82974d4 commit fed79ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/fox16_c/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ def do_rake_compiler_setup
$libs = append_library($libs, "Xrandr") unless RUBY_PLATFORM =~ /mingw/ || enable_config("win32-static-build")
$libs = append_library($libs, "Xcursor") unless RUBY_PLATFORM =~ /mingw/ || enable_config("win32-static-build")
$libs = append_library($libs, "png")
$CFLAGS = $CFLAGS + " -O0 -I#{File.join(File.dirname(__FILE__), 'include')}"
find_header('FXRbCommon.h', File.join(File.dirname(__FILE__), 'include'))
if is_fxscintilla_build?
FileUtils.move('scintilla_wrap.cpp.bak', 'scintilla_wrap.cpp') if FileTest.exist?('scintilla_wrap.cpp.bak')
$CFLAGS = $CFLAGS + " -DWITH_FXSCINTILLA -DHAVE_FOX_1_6"
$CPPFLAGS = $CPPFLAGS + " -DWITH_FXSCINTILLA -DHAVE_FOX_1_6"
$libs = append_library($libs, "fxscintilla")
else
FileUtils.move('scintilla_wrap.cpp', 'scintilla_wrap.cpp.bak') if FileTest.exist?('scintilla_wrap.cpp')
Expand Down

0 comments on commit fed79ff

Please sign in to comment.