diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-08-11 11:02:28 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-08-11 11:34:52 +0900 |
commit | 74d95744bdb9cf47b8fa07b9a9938c323658d9b9 (patch) | |
tree | bd62d1f443bdfc266cb9d29c1b3aa059688b5e92 /template | |
parent | 9fc401b689e64dde5fc7cc56c734d5cddd6aa6e1 (diff) | |
download | ruby-74d95744bdb9cf47b8fa07b9a9938c323658d9b9.tar.gz |
Add `--enable-devel` configure option
Since `RUBY_DEVEL` in cppflags has no effect in the configure script
and makefiles.
Diffstat (limited to 'template')
-rw-r--r-- | template/Makefile.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/template/Makefile.in b/template/Makefile.in index a8581260b9..756af363e4 100644 --- a/template/Makefile.in +++ b/template/Makefile.in @@ -89,7 +89,9 @@ optflags = @optflags@ debugflags = @debugflags@ warnflags = @warnflags@ @strict_warnflags@ cppflags = @cppflags@ -XCFLAGS = @XCFLAGS@ $(INCFLAGS) +RUBY_DEVEL = @RUBY_DEVEL@ # "yes" or empty +_RUBY_DEVEL_enabled = $(RUBY_DEVEL:no=) +XCFLAGS = @XCFLAGS@ $(INCFLAGS) $(_RUBY_DEVEL_enabled:yes=-DRUBY_DEVEL=1) USE_RUBYGEMS = @USE_RUBYGEMS@ USE_RUBYGEMS_ = $(USE_RUBYGEMS:yes=) CPPFLAGS = @CPPFLAGS@ $(USE_RUBYGEMS_:no=-DDISABLE_RUBYGEMS=1) |