1
0
mirror of https://github.com/SerenityOS/serenity synced 2024-07-09 14:30:46 +00:00

Ports: Build python3 port with shared libraries

This commit is contained in:
Julian Offenhäuser 2023-02-11 02:42:14 +01:00 committed by Andreas Kling
parent ed198ee6ae
commit b789debe07
3 changed files with 26 additions and 0 deletions

View File

@ -30,6 +30,7 @@ depends=(
)
configopts=(
'--disable-ipv6'
'--enable-shared'
'--without-ensurepip'
'--with-build-python=python3'
'ac_cv_file__dev_ptmx=no'

View File

@ -0,0 +1,22 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Julian=20Offenh=C3=A4user?= <offenhaeuser@protonmail.com>
Date: Fri, 10 Feb 2023 22:48:34 +0100
Subject: [PATCH] Set name of shared libpython
---
configure | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure b/configure
index 143ff27f07a8605510bca258bee3e621c95d34b8..1d30d0acfacfeeb31b4953e6512c51741cf9554c 100755
--- a/configure
+++ b/configure
@@ -6737,7 +6737,7 @@ $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h
PY3LIBRARY=libpython3.so
fi
;;
- Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*|VxWorks*)
+ Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*|VxWorks*|SerenityOS*)
LDLIBRARY='libpython$(LDVERSION).so'
BLDLIBRARY='-L. -lpython$(LDVERSION)'
RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}

View File

@ -57,3 +57,6 @@ given `TCP_NODELAY` as an argument. This TCP socket option is used in
many applications (like pip and requests) for optimization purposes.
For now, it can be safely ignored until it's supported in the kernel.
## `0007-Set-name-of-shared-libpython.patch`
Set name of shared libpython