summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorU.Nakamura <usa@ruby-lang.org>2023-06-26 20:09:45 +0900
committerU.Nakamura <usa@ruby-lang.org>2023-06-26 20:09:45 +0900
commitc87bf4d8e96819010942a00372ee518e22c76bac (patch)
tree04ae3a9f9d00a153f8922ba875f5233ef6fdae97
parent0275614ba213dfb6f05743a16f65623bc3b6e274 (diff)
merge revision(s) 038f9ade3c4d965415e4956561975454cf9eeb21: [Backport #19585]
Use tools appropriate with CC To get rid of mysterious errors such as: ``` /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm: error: libruby.3.3-static.a(/): The end of the file was unexpectedly encountered ``` and ``` ld: warning: ignoring file ../../libruby.3.3-static.a, building for macOS-x86_64 but attempting to link with file built for macOS-x86_64 Undefined symbols for architecture x86_64: "_rb_rational_num", referenced from: ``` --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+)
-rw-r--r--configure.ac6
-rw-r--r--version.h2
2 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 0bc6a7ae0e..4cf35e96e6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -214,6 +214,12 @@ AS_CASE(["${build_os}"],
],
[aix*], [
AC_PATH_TOOL([NM], [nm], [/usr/ccs/bin/nm], [/usr/ccs/bin:$PATH])
+],
+[darwin*], [
+ # For Apple clang version 14.0.3 (clang-1403.0.22.14.1)
+ ac_cv_prog_ac_ct_AR=`$CC -print-prog-name=ar`
+ ac_cv_prog_ac_ct_LD=`$CC -print-prog-name=ld`
+ ac_cv_prog_ac_ct_NM=`$CC -print-prog-name=nm`
])
AS_CASE(["${target_os}"],
[cygwin*|msys*|mingw*], [
diff --git a/version.h b/version.h
index f61b583442..f26ac7f780 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 228
+#define RUBY_PATCHLEVEL 229
#define RUBY_RELEASE_YEAR 2023
#define RUBY_RELEASE_MONTH 6