Skip to content

Commit 55fd553

Browse files
committed
Fixed a few things
1 parent e00bfd0 commit 55fd553

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

python_build/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ soospatchPY: compilePY
8787
touch soospatchPY
8888

8989
compilePY: extractedPY patchPY
90-
cd $(PYDIR) && ./configure CC="$(CC)" CXX="$(CXX)" AS="$(AS)" AR="$(AR)" OBJCOPY="$(OBJCOPY)" STRIP="$(STRIP)" NM="$(NM)" RANLIB="$(RANLIB)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" ASFLAGS="$(ASFLAGS)" LDFLAGS="$(LDFLAGS)" CONFIG_SITE="config.site" --disable-shared --without-threads --without-doc-strings --disable-ipv6 --host=aarch64-none-elf --build=`./config.guess` && cd .. && touch compilePY
90+
cd $(PYDIR) && ./configure CC="$(CC)" CXX="$(CXX)" AS="$(AS)" AR="$(AR)" OBJCOPY="$(OBJCOPY)" STRIP="$(STRIP)" NM="$(NM)" RANLIB="$(RANLIB)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" ASFLAGS="$(ASFLAGS)" LDFLAGS="$(LDFLAGS)" CONFIG_SITE="config.site" --disable-shared --without-threads --without-doc-strings --without-signal-module --disable-ipv6 --host=aarch64-none-elf --build=`./config.guess` && cd .. && touch compilePY
9191

9292
patchPY:
9393
cp $(PYDIR)/configure $(PYDIR)/configure_old
@@ -96,7 +96,7 @@ patchPY:
9696
echo ac_cv_file__dev_ptc=no >>$(PYDIR)/config.site
9797
echo ac_cv_lib_dl_dlopen=no >>$(PYDIR)/config.site
9898
cp $(PYDIR)/Modules/Setup.dist $(PYDIR)/Modules/Setup.dist_old
99-
cat $(PYDIR)/Modules/Setup.dist_old | sed 's/^\([^#].* pwdmodule\.c.*\)/#\1/' | sed 's/^#\(array\|cmath\|math\|_struct\|operator\|_random\|_collections\|itertools\|strop\|unicodedata\|_io\|_csv\|_md5\|_sha\|_sha256\|_sha512\|binascii\|select\|cStringIO\|time\|_functools\|_socket\|datetime\|_bisect\)\(.*\)/\1\2/' >$(PYDIR)/Modules/Setup.dist
99+
cat $(PYDIR)/Modules/Setup.dist_old | sed 's/^\([^#].* pwdmodule\.c.*\)/#\1/' | sed 's/^#\(array\|cmath\|math\|_struct\|operator\|_random\|_collections\|itertools\|signal\|strop\|unicodedata\|_io\|_csv\|_md5\|_sha\|_sha256\|_sha512\|binascii\|select\|cStringIO\|time\|_functools\|_socket\|datetime\|_bisect\)\(.*\)/\1\2/' | sed "s#\\(zlib[^\$$]*\\)\$$(prefix)\\([^\$$]*\\)\$$(exec_prefix)\\(.*\\)#\1$(DEVKITPRO)/portlibs/switch\2$(DEVKITPRO)/portlibs/switch\3#" >$(PYDIR)/Modules/Setup.dist
100100

101101
touch patchPY
102102

python_config/pyconfig.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,10 +1159,10 @@
11591159
/* #define HAVE_WAIT4 1 */ // original: #define HAVE_WAIT4 1
11601160

11611161
/* Define to 1 if you have the `waitid' function. */
1162-
#define HAVE_WAITID 1
1162+
/* #define HAVE_WAITID 1 */ // original: #define HAVE_WAITID 1
11631163

11641164
/* Define to 1 if you have the `waitpid' function. */
1165-
/* #define HAVE_WAITPID 1 */ // original: #define HAVE_WAITPID 1
1165+
#define HAVE_WAITPID 1
11661166

11671167
/* Define if the compiler provides a wchar.h header file. */
11681168
#define HAVE_WCHAR_H 1

0 commit comments

Comments
 (0)