mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
tasks/toolchains/gcc.rake: remove -lm on Windows; #5757
This commit is contained in:
@@ -25,7 +25,11 @@ MRuby::Toolchain.new(:gcc) do |conf, params|
|
||||
conf.linker do |linker|
|
||||
linker.command = ENV['LD'] || ENV['CXX'] || ENV['CC'] || default_command
|
||||
linker.flags = [ENV['LDFLAGS'] || %w()]
|
||||
linker.libraries = %w(m)
|
||||
if ENV['OS'] == 'Windows_NT'
|
||||
linker.libraries = []
|
||||
else
|
||||
linker.libraries = %w(m)
|
||||
end
|
||||
linker.library_paths = []
|
||||
linker.option_library = '-l%s'
|
||||
linker.option_library_path = '-L%s'
|
||||
|
||||
Reference in New Issue
Block a user