diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-02-07 15:52:58 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-02-07 15:52:58 +0900 |
| commit | e199df032dc7db1e9d7ee29ea5e57b57d3b486a2 (patch) | |
| tree | 9ae42402f97b65443e7cc00424b85e0445a6ef18 /mrbgems/mruby-bin-config/mruby-config | |
| parent | 6397ec727feb053e9251d75efdc3b0ba9c397eef (diff) | |
| parent | 8c22911c861c13cf53510d7e713cb12d042599f3 (diff) | |
| download | mruby-e199df032dc7db1e9d7ee29ea5e57b57d3b486a2.tar.gz mruby-e199df032dc7db1e9d7ee29ea5e57b57d3b486a2.zip | |
Merge branch 'rename-bin-mruby-config-to-bin-config' of https://github.com/shuujii/mruby into shuujii-rename-bin-mruby-config-to-bin-config
Diffstat (limited to 'mrbgems/mruby-bin-config/mruby-config')
| -rw-r--r-- | mrbgems/mruby-bin-config/mruby-config | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mrbgems/mruby-bin-config/mruby-config b/mrbgems/mruby-bin-config/mruby-config new file mode 100644 index 000000000..57346c03f --- /dev/null +++ b/mrbgems/mruby-bin-config/mruby-config @@ -0,0 +1,20 @@ +#!/bin/sh + +while [ $# -gt 0 ]; do + case $1 in + --cflags) echo MRUBY_CFLAGS;; + --ldflags) echo MRUBY_LDFLAGS;; + --ldflags-before-libs) echo MRUBY_LDFLAGS_BEFORE_LIBS;; + --libs) echo MRUBY_LIBS;; + --libmruby-path) echo MRUBY_LIBMRUBY_PATH;; + --help) echo "Usage: mruby-config [switches]" + echo " switches:" + echo " --cflags print flags passed to compiler" + echo " --ldflags print flags passed to linker" + echo " --ldflags-before-libs print flags passed to linker before linked libraries" + echo " --libs print linked libraries" + echo " --libmruby-path print libmruby path" + exit 0;; + esac + shift +done |
