diff options
author | Jun Aruga <[email protected]> | 2023-05-31 00:10:41 +0200 |
---|---|---|
committer | Kazuki Yamaguchi <[email protected]> | 2023-06-19 01:57:09 +0900 |
commit | 0a84bd6b0b5f947b4727b022c5768222b3e6d7d9 (patch) | |
tree | ac2e61076288e356a6d30120d7965417d943b6d6 /ext/openssl/ossl_x509revoked.c | |
parent | 1740482d06a477a712bb6af44d909e524cb8e9e7 (diff) |
[ruby/openssl] Append flags from environment variables.
According to the `mkmf.rb#init_mkmf`, there are command line options below.
* `--with-cflags` to set the `cflags`
* `--with-ldflags` to set the `ldflags`
For example the following command compiles with the specified flags. Note that
`MAKEFLAGS` is to print the compiler command lines.
```
$ MAKEFLAGS="V=1" \
bundle exec rake compile -- \
--with-cflags="-Wundef -Werror" \
--with-ldflags="-fstack-protector"
```
However, I couldn't find command line options to append the flags. And this
commit is to append the `cflags` and `ldflags` by the environment variables.
```
$ MAKEFLAGS="V=1" \
RUBY_OPENSSL_EXTCFLAGS="-Wundef -Werror" \
RUBY_OPENSSL_EXTLDFLAGS="-fstack-protector" \
bundle exec rake compile
```
https://github.com/ruby/openssl/commit/b551eb86f6
Diffstat (limited to 'ext/openssl/ossl_x509revoked.c')
0 files changed, 0 insertions, 0 deletions