Skip to content
Snippets Groups Projects
Commit c5775a5a authored by Lars Kanis's avatar Lars Kanis
Browse files

use CROSS_PREFIX determined by rake-compiler also for g++

parent a754ca2a
No related branches found
No related tags found
No related merge requests found
......@@ -391,6 +391,7 @@ task :mingw32 do
warn "Please refer to your distribution/package manager documentation about installation."
fail
end
ENV['CROSS_PREFIX'] = Rake::ExtensionCompiler.mingw_host
end
......
......@@ -79,7 +79,7 @@ def do_rake_compiler_setup
have_library( 'opengl32' ) && append_library( $libs, 'opengl32' )
have_library( 'winspool', 'EnumPrintersA') && append_library( $libs, 'winspool' )
CONFIG['CC'] += "\nCXX=i586-mingw32msvc-g++" # Hack CXX into Makefile for cross compilation
CONFIG['CC'] += "\nCXX=#{ENV['CROSS_PREFIX']}-g++" # Hack CXX into Makefile for cross compilation
$CFLAGS += " -D_SYS_TIME_H_" # fix incompatible types for gettimeofday()
elsif RUBY_PLATFORM =~ /mingw/
$CFLAGS = $CFLAGS + " -I/usr/local/include"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment