From 7bf08ff50729037c8820b26d085905175b5593c8 Mon Sep 17 00:00:00 2001 From: "Sergei V. Rogachev" Date: Mon, 8 Jul 2019 16:55:20 +0300 Subject: minic: fix undefined symbol linkage issue The mandel example uses SDL2 for graphics output. When GCC is used to assemble the resulting *.s file it shows linker's errors about undefined symbols from the library. This behavior can be fixed by moving the flags passed to the compiler after the source file name. --- minic/mcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minic/mcc b/minic/mcc index c8d500e..77d3d33 100755 --- a/minic/mcc +++ b/minic/mcc @@ -33,7 +33,7 @@ fi $DIR/minic < $file > /tmp/minic.ssa && $QBE < /tmp/minic.ssa > /tmp/minic.s && -cc $flags /tmp/minic.s +cc /tmp/minic.s $flags if test $? -ne 0 then -- cgit 1.4.1