From 8563a144fda2fd130b672541a84d8bad0b6c4cd2 Mon Sep 17 00:00:00 2001 From: "U.Nakamura" Date: Tue, 17 Oct 2023 20:51:50 +0900 Subject: merge revision(s) bcb3247072e6973d0f6b50ca5fed238d5824bd28,fe0225ff4d5af8b1f54009727b39d0d9b821eea3: [Backport #19778] [Bug #19778] Pass additional include options to INCFLAGS in common.mk --- common.mk | 2 +- configure.ac | 1 + template/Makefile.in | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) [Bug #19778] Add `-I` options for opt-dir to `$INCFLAGS` These options have been separated from `$CFLAGS` already in the other places. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- common.mk | 2 +- configure.ac | 3 ++- template/Makefile.in | 1 + version.h | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/common.mk b/common.mk index 00ab057ca5..722c41f79b 100644 --- a/common.mk +++ b/common.mk @@ -41,7 +41,7 @@ RUN_OPTS = --disable-gems # GITPULLOPTIONS = --no-tags -INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir) -I$(srcdir) -I$(UNICODE_HDR_DIR) +INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir) -I$(srcdir) -I$(UNICODE_HDR_DIR) $(incflags) GEM_HOME = GEM_PATH = diff --git a/configure.ac b/configure.ac index 4cf35e96e6..0eb94f66b4 100644 --- a/configure.ac +++ b/configure.ac @@ -953,9 +953,10 @@ AS_IF([test "x$OPT_DIR" != x], [ LDFLAGS="${LDFLAGS:+$LDFLAGS }$val" DLDFLAGS="${DLDFLAGS:+$DLDFLAGS }$val" LDFLAGS_OPTDIR="$val" - CPPFLAGS="${CPPFLAGS:+$CPPFLAGS }"`echo "$OPT_DIR" | tr "${PATH_SEPARATOR}" '\012' | + INCFLAGS="${INCFLAGS:+$INCFLAGS }"`echo "$OPT_DIR" | tr "${PATH_SEPARATOR}" '\012' | sed '/^$/d;s|^|-I|;s|$|/include|' | tr '\012' ' ' | sed 's/ *$//'` ]) +AC_SUBST(incflags, "$INCFLAGS") test -z "${ac_env_CFLAGS_set}" -a -n "${cflags+set}" && eval CFLAGS="\"$cflags $ARCH_FLAG\"" test -z "${ac_env_CXXFLAGS_set}" -a -n "${cxxflags+set}" && eval CXXFLAGS="\"$cxxflags $ARCH_FLAG\"" diff --git a/template/Makefile.in b/template/Makefile.in index 86f8b1e969..97313af5a4 100644 --- a/template/Makefile.in +++ b/template/Makefile.in @@ -86,6 +86,7 @@ optflags = @optflags@ debugflags = @debugflags@ warnflags = @warnflags@ @strict_warnflags@ cppflags = @cppflags@ +incflags = @incflags@ XCFLAGS = @XCFLAGS@ $(INCFLAGS) USE_RUBYGEMS = @USE_RUBYGEMS@ USE_RUBYGEMS_ = $(USE_RUBYGEMS:yes=) diff --git a/version.h b/version.h index 676f7f8f09..9dd8586cef 100644 --- a/version.h +++ b/version.h @@ -11,7 +11,7 @@ # define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR #define RUBY_VERSION_TEENY 4 #define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR -#define RUBY_PATCHLEVEL 243 +#define RUBY_PATCHLEVEL 244 #define RUBY_RELEASE_YEAR 2023 #define RUBY_RELEASE_MONTH 10 -- cgit v1.2.3