From 6b87aae757c91fb4343893136a1f181d869b5a63 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Tue, 17 Jan 2023 10:29:35 +0900 Subject: [PATCH] doc/guides/compile.md: update compilation example Show usage of multiple command-line options to `mruby-config`. --- doc/guides/compile.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/guides/compile.md b/doc/guides/compile.md index fbcc45319..4302d1362 100644 --- a/doc/guides/compile.md +++ b/doc/guides/compile.md @@ -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`