summary refs log tree commit diff
path: root/minic
diff options
context:
space:
mode:
authorSergei V. Rogachev <rogachevsergei@gmail.com>2019-07-08 16:55:20 +0300
committerQuentin Carbonneaux <quentin@c9x.me>2019-07-11 13:10:44 +0200
commit7bf08ff50729037c8820b26d085905175b5593c8 (patch)
tree69f942815442e4dde167fd1ee1cd8bdc32e638a2 /minic
parentacc3af47330fd6610cf0fbdb28e9fbd05160888f (diff)
downloadroux-7bf08ff50729037c8820b26d085905175b5593c8.tar.gz
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 (limited to 'minic')
-rwxr-xr-xminic/mcc2
1 files changed, 1 insertions, 1 deletions
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