diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-04-06 13:11:27 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-04-06 17:25:54 +0900 |
| commit | 71bf362a5bca865b5ce063b17d8fd62d34fe25be (patch) | |
| tree | f65f71b4ae60f1d46daeae83638173163d200944 | |
| parent | 58ab97e3008f1033db3ea540eb41617dc4875591 (diff) | |
| download | mruby-71bf362a5bca865b5ce063b17d8fd62d34fe25be.tar.gz mruby-71bf362a5bca865b5ce063b17d8fd62d34fe25be.zip | |
doc/link.md: update `mruby-config` description.
| -rw-r--r-- | doc/guides/compile.md | 2 | ||||
| -rw-r--r-- | doc/guides/link.md | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/doc/guides/compile.md b/doc/guides/compile.md index 7a2ff2a44..740663ff8 100644 --- a/doc/guides/compile.md +++ b/doc/guides/compile.md @@ -527,7 +527,9 @@ convenience. `mruby-config` command prints the configuration used for `libmruby. $ mruby-config --help Usage: mruby-config [switches] switches: + --cc print compiler name --cflags print flags passed to compiler + --ld print linker name --ldflags print flags passed to linker --ldflags-before-libs print flags passed to linker before linked libraries --libs print linked libraries diff --git a/doc/guides/link.md b/doc/guides/link.md index 1826dde59..4bef8414c 100644 --- a/doc/guides/link.md +++ b/doc/guides/link.md @@ -49,7 +49,10 @@ for example: * `-D` to specify mruby configuration macros To retrieve compiler options used to build `mruby`, you can use `mruby-config` -command. +command with following options: + +* `--cc` compiler name +* `--cflags` options passed to compiler ``` $ mruby-config --cflags @@ -63,6 +66,7 @@ compatible to mruby configuration. To retrieve linker options, you can use `mruby-config` with following options: +* `--ld` linker name * `--ldflags` options passed to linker * `--ldflags-before-libs` options passed to linker before linked libraries * `--libs` linked libraries |
