summaryrefslogtreecommitdiff
path: root/lang/ruby/3.2/patches/patch-configure
diff options
context:
space:
mode:
Diffstat (limited to 'lang/ruby/3.2/patches/patch-configure')
-rw-r--r--lang/ruby/3.2/patches/patch-configure49
1 files changed, 0 insertions, 49 deletions
diff --git a/lang/ruby/3.2/patches/patch-configure b/lang/ruby/3.2/patches/patch-configure
deleted file mode 100644
index f7af0c0..0000000
--- a/lang/ruby/3.2/patches/patch-configure
+++ /dev/null
@@ -1,49 +0,0 @@
1Support arm64 coroutines.
2Don't downgrade arm64 branch protection.
3
4Set correct shared library name.
5
6Override the arch setting to remove OpenBSD version from it,
7so ports don't have to be bumped when OpenBSD version changes.
8
9Index: configure
10--- configure.orig
11+++ configure
12@@ -10897,7 +10897,7 @@ esac
13 case "$target_cpu" in #(
14 aarch64) :
15
16- for opt in -mbranch-protection=pac-ret -msign-return-address=all
17+ for opt in -mbranch-protection=standard -msign-return-address=all
18 do :
19
20
21@@ -29475,6 +29475,10 @@ esac
22
23 coroutine_type=x86
24 ;; #(
25+ aarch64-openbsd*) :
26+
27+ coroutine_type=arm64
28+ ;; #(
29 *-openbsd*) :
30
31 coroutine_type=pthread
32@@ -31684,7 +31688,7 @@ fi
33 ;; #(
34 openbsd*|mirbsd*) :
35
36- LIBRUBY_SO='lib$(RUBY_SO_NAME).$(SOEXT).$(MAJOR).'`expr ${MINOR} \* 10 + ${TEENY}`
37+ LIBRUBY_SO='lib$(RUBY_SO_NAME).so.'${LIBruby32_VERSION}
38 ;; #(
39 solaris*) :
40
41@@ -33675,7 +33679,7 @@ then :
42
43 else $as_nop
44
45- arch="${target_cpu}-${target_os}"
46+ arch="${target_cpu}-openbsd"
47
48 fi
49 printf "%s\n" "#define RUBY_PLATFORM \"$arch\"" >>confdefs.h