From 2984d421b718d3422e2f302643f6016eae5a60ff Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Tue, 27 Oct 2015 23:58:41 +0200 Subject: [PATCH] Put extra flags at the end because some versions of gcc do not handle -l flags before the source file. --- compilers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compilers.py b/compilers.py index 06f559e5c..85b57b320 100644 --- a/compilers.py +++ b/compilers.py @@ -318,8 +318,8 @@ int someSymbolHereJustForFun; def compile(self, code, srcname, extra_args=[]): commands = self.get_exelist() - commands += extra_args commands.append(srcname) + commands += extra_args mlog.debug('Running compile:') mlog.debug('Command line: ', ' '.join(commands)) mlog.debug('Code:\n', code)