commit 7bf08ff50729037c8820b26d085905175b5593c8
parent acc3af47330fd6610cf0fbdb28e9fbd05160888f
Author: Sergei V. Rogachev <rogachevsergei@gmail.com>
Date: Mon, 8 Jul 2019 16:55:20 +0300
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.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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