tasks/toolchains/gcc.rake: remove -lm on Windows; #5757

This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-07-30 07:33:45 +09:00
parent 6da34fa735
commit 273ca4d4f6
+5 -1
View File
@@ -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'