doc/guides/compile.md: update compilation example

Show usage of multiple command-line options to `mruby-config`.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2023-01-17 10:29:35 +09:00
parent 10768c1191
commit 6b87aae757
+1 -1
View File
@@ -545,7 +545,7 @@ For example, when you have a C source file (`c.c`) and try to
compile and link it with `libmruby.a`, you can run the following command,
```
gcc `mruby-config --cflags` c.c `mruby-config --ldflags` `mruby-config --libs`
`mruby-config --cc --cflags` c.c `mruby-config --ldflags --libs`
```
When you use `make`, add following lines in `Makefile`