mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
doc/guides/compile.md: update compilation example
Show usage of multiple command-line options to `mruby-config`.
This commit is contained in:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user