diff --git a/config.sub b/config.sub index d74fb6d..e5e15e4 100755 --- a/config.sub +++ b/config.sub @@ -1748,7 +1748,7 @@ case $os in | skyos* | haiku* | rdos* | toppers* | drops* | es* \ | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \ | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \ - | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr*) + | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr* | ohos*) ;; # This one is extra strict with allowed versions sco3.2v2 | sco3.2v[4-9]* | sco5v6*) @@ -1786,6 +1786,8 @@ case $kernel-$os in ;; *-eabi* | *-gnueabi*) ;; + *-ohos*) + ;; -*) # Blank kernel with real OS is always fine. ;; diff --git a/configure.ac b/configure.ac index 1c25abd..1f5a417 100644 --- a/configure.ac +++ b/configure.ac @@ -941,6 +941,8 @@ cat > conftest.c < conftest.c </dev/null)] + [MULTIARCH=$($CC $CFLAGS --print-multiarch 2>/dev/null)] ) AC_SUBST([MULTIARCH]) AC_MSG_RESULT([$MULTIARCH]) diff --git a/setup.py b/setup.py index 4f122b6..fbff78a 100644 --- a/setup.py +++ b/setup.py @@ -56,7 +56,7 @@ # This global variable is used to hold the list of modules to be disabled. -DISABLED_MODULE_LIST = [] +DISABLED_MODULE_LIST = ['_uuid', '_socket', 'zlib', '_ctypes', 'binascii'] # --list-module-names option used by Tools/scripts/generate_module_names.py LIST_MODULE_NAMES = False @@ -849,10 +849,11 @@ def configure_compiler(self): if not CROSS_COMPILING: add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') + self.add_multiarch_paths() # only change this for cross builds for 3.3, issues on Mageia if CROSS_COMPILING: self.add_cross_compiling_paths() - self.add_multiarch_paths() + self.compiler.add_library('python%s' % sys.version.split()[0][:4]) self.add_ldflags_cppflags() def init_inc_lib_dirs(self): diff --git a/support_ohos_ignorefile.txt b/support_ohos_ignorefile.txt new file mode 100644 index 0000000..e69de29