diff options
author | midipix <writeonce@midipix.org> | 2018-12-23 04:50:45 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-12-23 04:50:45 -0500 |
commit | cf23d7ce6e94358a3ebf3adee2b332f5f6df85ed (patch) | |
tree | c5372320c92944d11081f3cf106c3f64634ca31b /config/midipix | |
parent | eb0b78fefb6c76189823e303a79de45419618a69 (diff) | |
download | sbpython3-cf23d7ce6e94358a3ebf3adee2b332f5f6df85ed.tar.bz2 sbpython3-cf23d7ce6e94358a3ebf3adee2b332f5f6df85ed.tar.xz |
project: config, cfghost.sh: simply & unify cfghost profiles (cf. ea008a7).
Diffstat (limited to 'config/midipix')
-rw-r--r-- | config/midipix/config.c | 17 | ||||
-rw-r--r-- | config/midipix/config.mk | 26 | ||||
-rw-r--r-- | config/midipix/pyconfig.h | 11 |
3 files changed, 54 insertions, 0 deletions
diff --git a/config/midipix/config.c b/config/midipix/config.c new file mode 100644 index 0000000..0304e40 --- /dev/null +++ b/config/midipix/config.c @@ -0,0 +1,17 @@ +#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, +#endif + +#ifdef PY_FOR_PYCOMPILE + PY_IMPORT_INITTAB_PYCOMPILE_CORE, +#endif + + {0, 0} +}; diff --git a/config/midipix/config.mk b/config/midipix/config.mk new file mode 100644 index 0000000..e9c672d --- /dev/null +++ b/config/midipix/config.mk @@ -0,0 +1,26 @@ +# platform +PYTHON_PATH = +PYTHON_PLATFORM = midipix + + +# extensions: built-in +CONFIG_SRCS = $(CONFIG_DEFAULT_SRCS) + + +# extensions: dynamic loading +DYNLOAD_SRCS = \ + core/Python/dynload_shlib.c \ + + +# extensions: desired subsets +include $(PROJECT_DIR)/profiles/pyexts/subsets.mk + +PYEXT_SHARED = \ + $(PYEXT_SUBSET_SHARED_ANYOS_CORE) \ + +PYEXT_STATIC = \ + $(PYEXT_SUBSET_STATIC_ANYOS_CORE) \ + + +# strict shared object generation +LDFLAGS_STRICT += -Wl,-no-undefined diff --git a/config/midipix/pyconfig.h b/config/midipix/pyconfig.h new file mode 100644 index 0000000..72f12fd --- /dev/null +++ b/config/midipix/pyconfig.h @@ -0,0 +1,11 @@ +#ifndef PY_PYCONFIG_H +#define PY_PYCONFIG_H + +#include "osapi/modern.h" +#include "osapi/rtld.h" +#include "osapi/midipix.h" + +/* cf. Modules/posixmodule.c */ +#define HAVE_BROKEN_NICE 1 + +#endif |