1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-22 08:25:08 +00:00
serenity/Ports/perl5/patches/0003-configure-Add-hint-for-serenity.patch
Beckett Normington 39e79d6f6f Ports/perl5: Remove no longer needed Makefile patch
Following the removal of the `drand48` patch to the configure script,
we can now remove this patch as it is no longer needed to prevent an
interpreter hang.
2023-08-28 00:40:35 +02:00

40 lines
1,017 B
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Beckett Normington <beckett@b0ba.dev>
Date: Thu, 27 Jul 2023 13:58:01 -0400
Subject: [PATCH] configure: Add hint for `serenity`
---
cnf/hints/serenity | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
create mode 100644 cnf/hints/serenity
diff --git a/cnf/hints/serenity b/cnf/hints/serenity
new file mode 100644
index 0000000000000000000000000000000000000000..3e038d0ac1660d7ee485bc32ddaec5a1c953cabd
--- /dev/null
+++ b/cnf/hints/serenity
@@ -0,0 +1,24 @@
+libs='-ldl -lm -lcrypt -lcore'
+
+# Use OS's malloc() by default.
+case "$usemymalloc" in
+'') usemymalloc='n' ;;
+esac
+
+# uses gcc.
+cc='gcc'
+ld='gcc'
+
+# as of the latest some symbols are confusing the nm lookup
+case "$usenm" in
+'') usenm='undef' ;;
+esac
+
+# disable nanosleep
+d_nanosleep='undef'
+
+# don't try to test min/max of gmtime/localtime
+sGMTIME_max=2147483647
+sGMTIME_min=-2147481748
+sLOCALTIME_max=2147483647
+sLOCALTIME_min=-2147481748