ports: Add python3 port
This commit is contained in:
60
ports/python3/patches/0001-fix-configure-for-banan_os.patch
Normal file
60
ports/python3/patches/0001-fix-configure-for-banan_os.patch
Normal file
@@ -0,0 +1,60 @@
|
||||
diff -ruN Python-3.13.3/configure Python-3.13.3-banan_os/configure
|
||||
--- Python-3.13.3/configure 2025-04-08 16:54:08.000000000 +0300
|
||||
+++ Python-3.13.3-banan_os/configure 2025-04-19 04:25:20.860260051 +0300
|
||||
@@ -4052,6 +4052,9 @@
|
||||
*-*-linux*)
|
||||
ac_sys_system=Linux
|
||||
;;
|
||||
+ *-*-banan_os*)
|
||||
+ ac_sys_system=banan_os
|
||||
+ ;;
|
||||
*-*-cygwin*)
|
||||
ac_sys_system=Cygwin
|
||||
;;
|
||||
@@ -4500,6 +4503,9 @@
|
||||
_host_ident=$host_cpu
|
||||
esac
|
||||
;;
|
||||
+ *-*-banan_os*)
|
||||
+ _host_ident=$host_cpu
|
||||
+ ;;
|
||||
*-*-cygwin*)
|
||||
_host_ident=
|
||||
;;
|
||||
@@ -7603,6 +7609,11 @@
|
||||
PY3LIBRARY=libpython3.so
|
||||
fi
|
||||
;;
|
||||
+ banan_os*)
|
||||
+ LDLIBRARY='libpython$(LDVERSION).so'
|
||||
+ BLDLIBRARY='-L. -lpython$(LDVERSION)'
|
||||
+ RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
|
||||
+ ;;
|
||||
hp*|HP*)
|
||||
case `uname -m` in
|
||||
ia64)
|
||||
@@ -12983,7 +12994,7 @@
|
||||
Emscripten*|WASI*)
|
||||
LDSHARED='$(CC) -shared'
|
||||
LDCXXSHARED='$(CXX) -shared';;
|
||||
- Linux*|GNU*|QNX*|VxWorks*|Haiku*)
|
||||
+ Linux*|GNU*|QNX*|VxWorks*|Haiku*|banan_os*)
|
||||
LDSHARED='$(CC) -shared'
|
||||
LDCXXSHARED='$(CXX) -shared';;
|
||||
FreeBSD*)
|
||||
@@ -13069,6 +13080,7 @@
|
||||
else CCSHARED="+z";
|
||||
fi;;
|
||||
Linux*|GNU*) CCSHARED="-fPIC";;
|
||||
+ banan_os*) CCSHARED="-fPIC";;
|
||||
Emscripten*|WASI*)
|
||||
if test "x$enable_wasm_dynamic_linking" = xyes
|
||||
then :
|
||||
@@ -23609,6 +23621,7 @@
|
||||
|
||||
case $ac_sys_system in
|
||||
Darwin) ;;
|
||||
+banan_os) ;;
|
||||
*) LIBM=-lm
|
||||
esac
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5
|
||||
Reference in New Issue
Block a user