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

Released on 2021-08-02. https://www.python.org/downloads/release/python-3100rc1/ This contains the first upstreamed change for SerenityOS, making the webbrowser module work with Browser out of the box :^)
89 lines
2.6 KiB
Diff
89 lines
2.6 KiB
Diff
--- Python-3.10.0rc1/config.sub 2021-08-03 19:03:07.361000000 +0100
|
|
+++ Python-3.10.0rc1/config.sub 2021-08-03 19:04:06.425786525 +0100
|
|
@@ -1485,6 +1485,8 @@
|
|
-oss*)
|
|
os=-sysv3
|
|
;;
|
|
+ -serenity*)
|
|
+ ;;
|
|
-svr4*)
|
|
os=-sysv4
|
|
;;
|
|
--- Python-3.10.0rc1/configure.ac 2021-08-03 19:04:59.784000000 +0100
|
|
+++ Python-3.10.0rc1/configure.ac 2021-08-03 19:08:42.069896469 +0100
|
|
@@ -391,6 +391,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
|
|
;;
|
|
@@ -429,6 +432,7 @@
|
|
linux*) MACHDEP="linux";;
|
|
cygwin*) MACHDEP="cygwin";;
|
|
darwin*) MACHDEP="darwin";;
|
|
+ serenityos*) MACHDEP="serenityos";;
|
|
'') MACHDEP="unknown";;
|
|
esac
|
|
fi
|
|
@@ -437,6 +441,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*)
|
|
@@ -2757,7 +2764,7 @@
|
|
LINKFORSHARED="-Wl,-E -Wl,+s";;
|
|
# LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
|
|
Linux-android*) LINKFORSHARED="-pie -Xlinker -export-dynamic";;
|
|
- Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
|
|
+ Linux*|GNU*|SerenityOS*) LINKFORSHARED="-Xlinker -export-dynamic";;
|
|
# -u libsys_s pulls in all symbols in libsys
|
|
Darwin/*)
|
|
LINKFORSHARED="$extra_undefs -framework CoreFoundation"
|
|
--- Python-3.10.0rc1/configure 2021-08-03 19:06:33.593000000 +0100
|
|
+++ Python-3.10.0rc1/configure 2021-08-03 19:08:53.870858123 +0100
|
|
@@ -3697,6 +3697,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
|
|
;;
|
|
@@ -3735,6 +3738,7 @@
|
|
linux*) MACHDEP="linux";;
|
|
cygwin*) MACHDEP="cygwin";;
|
|
darwin*) MACHDEP="darwin";;
|
|
+ serenityos*) MACHDEP="serenityos";;
|
|
'') MACHDEP="unknown";;
|
|
esac
|
|
fi
|
|
@@ -3744,6 +3748,9 @@
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
case "$host" in
|
|
+ *-*-serenity*)
|
|
+ _host_cpu=$host_cpu
|
|
+ ;;
|
|
*-*-linux*)
|
|
case "$host_cpu" in
|
|
arm*)
|
|
@@ -10788,7 +10795,7 @@
|
|
LINKFORSHARED="-Wl,-E -Wl,+s";;
|
|
# LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
|
|
Linux-android*) LINKFORSHARED="-pie -Xlinker -export-dynamic";;
|
|
- Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
|
|
+ Linux*|GNU*|SerenityOS*) LINKFORSHARED="-Xlinker -export-dynamic";;
|
|
# -u libsys_s pulls in all symbols in libsys
|
|
Darwin/*)
|
|
LINKFORSHARED="$extra_undefs -framework CoreFoundation"
|