summaryrefslogtreecommitdiff
path: root/lang/ruby32/files/patch-configure.ac
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2022-04-22 23:04:46 -0400
committerJung-uk Kim <jkim@FreeBSD.org>2022-04-22 23:04:46 -0400
commitbd22c2827968b0ef6ef36dd853b31259c6ba3125 (patch)
treefcb6df7e3fd32bd5f840de31de316394ab74cca7 /lang/ruby32/files/patch-configure.ac
parentMk/bsd.ruby.mk: Bump RUBY_PORTREVISION of Ruby 2.7 and 3.0 (diff)
lang/ruby3[0-2]: Fix build with certain CPUTYPE
When CPUTYPE is set and the CPU supports lzcnt instruction, it fails to build because x86intrin.h is not included. Fix the test to make it work on FreeBSD. PR: 260791 Approved by: ruby (maintainer timeout)
Diffstat (limited to 'lang/ruby32/files/patch-configure.ac')
-rw-r--r--lang/ruby32/files/patch-configure.ac15
1 files changed, 12 insertions, 3 deletions
diff --git a/lang/ruby32/files/patch-configure.ac b/lang/ruby32/files/patch-configure.ac
index 170a9f3a9fe8..7740d9d0a1c3 100644
--- a/lang/ruby32/files/patch-configure.ac
+++ b/lang/ruby32/files/patch-configure.ac
@@ -1,6 +1,15 @@
---- configure.ac.orig 2018-12-28 12:03:09 UTC
+--- configure.ac.orig 2022-04-03 04:38:31 UTC
+++ configure.ac
-@@ -2678,7 +2678,7 @@ AS_IF([test "$with_dln_a_out" != yes], [
+@@ -1320,7 +1320,7 @@ AC_CHECK_HEADERS(utime.h)
+ AC_CHECK_HEADERS(time.h)
+ AC_CHECK_HEADERS(ucontext.h)
+ AC_CHECK_HEADERS(utime.h)
+-AS_CASE("$target_cpu", [x64|x86_64|i[3-6]86*], [
++AS_CASE("$target_cpu", [amd64|x64|x86_64|i[3-6]86*], [
+ AC_CHECK_HEADERS(x86intrin.h)
+ ])
+ RUBY_UNIVERSAL_CHECK_HEADER([x86_64, i386], x86intrin.h)
+@@ -3027,7 +3027,7 @@ STATIC=
: ${LDSHARED='$(CC) -shared'}
AS_IF([test "$rb_cv_binary_elf" = yes], [
LDFLAGS="$LDFLAGS -rdynamic"
@@ -9,7 +18,7 @@
], [
test "$GCC" = yes && test "$rb_cv_prog_gnu_ld" = yes || LDSHARED='$(LD) -Bshareable'
])
-@@ -3163,6 +3163,7 @@ AS_CASE("$enable_shared", [yes], [
+@@ -3501,6 +3501,7 @@ AS_CASE("$enable_shared", [yes], [
[freebsd*|dragonfly*], [
LIBRUBY_SO='lib$(RUBY_SO_NAME).$(SOEXT).$(MAJOR)$(MINOR)'
LIBRUBY_SONAME='$(LIBRUBY_SO)'