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