mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:28:12 +00:00

This enables shared library support for Python and removes a few patches which are not necessary anymore now that we have dlfcn support.
66 lines
1.9 KiB
Diff
66 lines
1.9 KiB
Diff
--- Python-3.9.4/config.sub 2021-02-21 20:22:43.901024503 +0100
|
|
+++ Python-3.9.4/config.sub 2021-02-21 20:24:35.079400552 +0100
|
|
@@ -1485,6 +1485,8 @@
|
|
-oss*)
|
|
os=-sysv3
|
|
;;
|
|
+ -serenity*)
|
|
+ ;;
|
|
-svr4*)
|
|
os=-sysv4
|
|
;;
|
|
--- Python-3.9.4/configure.ac 2021-04-06 20:59:45.319060429 +0200
|
|
+++ Python-3.9.4/configure.ac 2021-04-06 21:02:33.875267539 +0200
|
|
@@ -389,6 +389,9 @@
|
|
# a lot of different things including 'define_xopen_source'
|
|
# in the case statement below.
|
|
case "$host" in
|
|
+ *-*-serenity*)
|
|
+ ac_sys_system=SerenityOS
|
|
+ ;;
|
|
*-*-linux-android*)
|
|
ac_sys_system=Linux-android
|
|
;;
|
|
@@ -435,6 +438,9 @@
|
|
AC_SUBST(_PYTHON_HOST_PLATFORM)
|
|
if test "$cross_compiling" = yes; then
|
|
case "$host" in
|
|
+ *-*-serenity*)
|
|
+ _host_cpu=$host_cpu
|
|
+ ;;
|
|
*-*-linux*)
|
|
case "$host_cpu" in
|
|
arm*)
|
|
--- Python-3.9.4/configure 2021-02-21 20:22:43.898024520 +0100
|
|
+++ Python-3.9.4/configure 2021-02-21 20:24:35.096400457 +0100
|
|
@@ -3292,6 +3292,9 @@
|
|
# a lot of different things including 'define_xopen_source'
|
|
# in the case statement below.
|
|
case "$host" in
|
|
+ *-*-serenity*)
|
|
+ ac_sys_system=SerenityOS
|
|
+ ;;
|
|
*-*-linux-android*)
|
|
ac_sys_system=Linux-android
|
|
;;
|
|
@@ -3339,6 +3342,9 @@
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
case "$host" in
|
|
+ *-*-serenity*)
|
|
+ _host_cpu=$host_cpu
|
|
+ ;;
|
|
*-*-linux*)
|
|
case "$host_cpu" in
|
|
arm*)
|
|
diff -Naur Python-3.9.4/configure Python-3.9.4.serenity/configure
|
|
--- Python-3.9.4/configure 2021-04-24 14:50:59.083484421 +0200
|
|
+++ Python-3.9.4.serenity/configure 2021-04-24 15:50:26.821359967 +0200
|
|
@@ -9647,6 +9647,7 @@
|
|
# LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
|
|
Linux-android*) LINKFORSHARED="-pie -Xlinker -export-dynamic";;
|
|
Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
|
|
+ SerenityOS*) LINKFORSHARED="-Xlinker -export-dynamic";;
|
|
# -u libsys_s pulls in all symbols in libsys
|
|
Darwin/*)
|
|
LINKFORSHARED="$extra_undefs -framework CoreFoundation"
|