diff options
author | midipix <writeonce@midipix.org> | 2018-12-14 19:33:25 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-12-18 20:38:38 -0500 |
commit | 11fe1bf64acded045c9bf356684ebd17fed9515a (patch) | |
tree | 13bf153f99fc1eb418cf94588c47b168228c8cf5 /config/x86_64-linux | |
parent | 5d6440f2e0bc43442c8c0ef504c3fe63e1ca4708 (diff) | |
download | sbpython3-11fe1bf64acded045c9bf356684ebd17fed9515a.tar.bz2 sbpython3-11fe1bf64acded045c9bf356684ebd17fed9515a.tar.xz |
config: imported defs for x86_64-{linux|midipix} minus the pyext bits.
Diffstat (limited to 'config/x86_64-linux')
-rw-r--r-- | config/x86_64-linux/config.c | 18 | ||||
-rw-r--r-- | config/x86_64-linux/config.mk | 16 | ||||
-rw-r--r-- | config/x86_64-linux/pyconfig.h | 14 |
3 files changed, 48 insertions, 0 deletions
diff --git a/config/x86_64-linux/config.c b/config/x86_64-linux/config.c new file mode 100644 index 0000000..bdb9243 --- /dev/null +++ b/config/x86_64-linux/config.c @@ -0,0 +1,18 @@ +#include "linkage/inittab.h" + +struct _inittab _PyImport_Inittab[] = { + + PY_IMPORT_INITTAB_BASE, + PY_IMPORT_INITTAB_COMMON, + +#ifdef PY_ALL_STATIC + PY_IMPORT_INITTAB_ANYOS_CORE, + PY_IMPORT_INITTAB_ANYOS_AUDIO, +#endif + +#ifdef PY_FOR_PYCOMPILE + PY_IMPORT_INITTAB_PYCOMPILE_CORE, +#endif + + {0, 0} +}; diff --git a/config/x86_64-linux/config.mk b/config/x86_64-linux/config.mk new file mode 100644 index 0000000..dd3ef2c --- /dev/null +++ b/config/x86_64-linux/config.mk @@ -0,0 +1,16 @@ +# platform +PYTHON_PATH = +PYTHON_PLATFORM = linux2 + + +# extensions: built-in +CONFIG_SRCS = $(CONFIG_DEFAULT_SRCS) + + +# extensions: dynamic loading +DYNLOAD_SRCS = \ + core/Python/dynload_shlib.c \ + + +# strict shared object generation +LDFLAGS_STRICT += -Wl,-no-undefined diff --git a/config/x86_64-linux/pyconfig.h b/config/x86_64-linux/pyconfig.h new file mode 100644 index 0000000..bd82e42 --- /dev/null +++ b/config/x86_64-linux/pyconfig.h @@ -0,0 +1,14 @@ +#ifndef PY_PYCONFIG_H +#define PY_PYCONFIG_H + +#include "osapi/modern.h" +#include "osapi/rtld.h" +#include "osapi/linux.h" +#include "osapi/overrides.h" +#include "toolchain/64-default.h" +#include "toolchain/64-le-ieee.h" + +/* cf. Modules/posixmodule.c */ +#define HAVE_BROKEN_NICE 1 + +#endif |