1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-22 08:55:10 +00:00
serenity/Ports/ruby/patches/0001-Teach-configure-about-serenity.patch
Tim Schumacher 8434d76027 Ports: Update Ruby to version 3.2.2
Three patches that are apparently no longer needed have been removed.
2023-05-17 08:54:55 +02:00

53 lines
1.6 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Ali Mohammad Pur <mpfard@serenityos.org>
Date: Sat, 8 Jan 2022 17:02:29 +0330
Subject: [PATCH] Teach configure about serenity
Co-Authored-By: Eric Seifert <seiferteric@gmail.com>
Co-Authored-By: Tim Schumacher <timschumi@gmx.de>
---
configure | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/configure b/configure
index db34b7918baf98119bc1b2de420b7f36f9692260..fc20a056a1acb046bffece2458aeddb9389fc48c 100755
--- a/configure
+++ b/configure
@@ -29485,6 +29485,10 @@ esac
;; #(
*-haiku*) :
+ coroutine_type=pthread
+ ;; #(
+ *-serenity*) :
+
coroutine_type=pthread
;; #(
*-emscripten*) :
@@ -30227,7 +30231,7 @@ esac
fi
case "$target_os" in #(
- linux* | gnu* | k*bsd*-gnu | bsdi* | kopensolaris*-gnu) :
+ linux* | gnu* | k*bsd*-gnu | bsdi* | kopensolaris*-gnu | serenity*) :
if test "$rb_cv_binary_elf" = no
then :
@@ -30417,7 +30421,7 @@ fi
*) :
;;
esac ;; #(
- linux* | gnu* | k*bsd*-gnu | netbsd* | bsdi* | kopensolaris*-gnu | haiku*) :
+ linux* | gnu* | k*bsd*-gnu | netbsd* | bsdi* | kopensolaris*-gnu | haiku* | serenity*) :
: ${LDSHARED='$(CC) -shared'}
if test "$rb_cv_binary_elf" = yes
@@ -31614,7 +31618,7 @@ esac
LIBRUBY_ALIASES='$(LIBRUBY_SONAME) lib$(RUBY_SO_NAME).$(SOEXT)'
;; #(
- linux* | gnu* | k*bsd*-gnu | atheos* | kopensolaris*-gnu | haiku*) :
+ linux* | gnu* | k*bsd*-gnu | atheos* | kopensolaris*-gnu | haiku* | serenity*) :
# RUBY_APPEND_OPTIONS(LIBRUBY_DLDFLAGS)
for rb_opt in '-Wl,-soname,$(LIBRUBY_SONAME)' "$LDFLAGS_OPTDIR"; do