https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
13 lines
462 B
Diff
13 lines
462 B
Diff
diff --git a/mruby/tasks/toolchains/gcc.rake b/mruby/tasks/toolchains/gcc.rake
|
|
index f370c0ab..e5ab9f60 100644
|
|
--- a/mruby/tasks/toolchains/gcc.rake
|
|
+++ b/mruby/tasks/toolchains/gcc.rake
|
|
@@ -22,7 +22,7 @@ MRuby::Toolchain.new(:gcc) do |conf, _params|
|
|
end
|
|
|
|
conf.linker do |linker|
|
|
- linker.command = ENV['LD'] || 'gcc'
|
|
+ linker.command = 'gcc'
|
|
linker.flags = [ENV['LDFLAGS'] || %w()]
|
|
linker.libraries = %w(m)
|
|
linker.library_paths = []
|