From 064bb2f90f63cad269963d3f987569fe7369859d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torsten=20R=C3=BCger?= Date: Mon, 19 Aug 2019 19:13:51 +0300 Subject: [PATCH] Fix compilers link link command varies on systems, hmm --- .gitignore | 1 + lib/rubyx/rubyxc.rb | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 644987e8..089e621c 100644 --- a/.gitignore +++ b/.gitignore @@ -42,6 +42,7 @@ pkg log tmp a.out +*.core #pi related files, like kernel an qemu pi diff --git a/lib/rubyx/rubyxc.rb b/lib/rubyx/rubyxc.rb index ec65ddd0..dc136487 100644 --- a/lib/rubyx/rubyxc.rb +++ b/lib/rubyx/rubyxc.rb @@ -91,8 +91,8 @@ class RubyXC < Thor def execute(file) outfile = compile(file) - system "arm-linux-gnueabi-ld -N #{outfile}" - puts "Linked ok, now running #{file}" + system "arm-linux-gnu-ld -N #{outfile}" + puts "Linked ok, now running #{outfile}" system "qemu-arm ./a.out ; echo $?" end