diff options
author | Sergei V. Rogachev <rogachevsergei@gmail.com> | 2019-07-08 16:55:20 +0300 |
---|---|---|
committer | Quentin Carbonneaux <quentin@c9x.me> | 2019-07-11 13:10:44 +0200 |
commit | 7bf08ff50729037c8820b26d085905175b5593c8 (patch) | |
tree | 69f942815442e4dde167fd1ee1cd8bdc32e638a2 | |
parent | acc3af47330fd6610cf0fbdb28e9fbd05160888f (diff) | |
download | roux-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.
-rwxr-xr-x | minic/mcc | 2 |
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 |