summaryrefslogtreecommitdiff
path: root/config/x86_64-midipix
diff options
context:
space:
mode:
Diffstat (limited to 'config/x86_64-midipix')
-rw-r--r--config/x86_64-midipix/config.c17
-rw-r--r--config/x86_64-midipix/config.mk16
-rw-r--r--config/x86_64-midipix/pyconfig.h13
3 files changed, 46 insertions, 0 deletions
diff --git a/config/x86_64-midipix/config.c b/config/x86_64-midipix/config.c
new file mode 100644
index 0000000..0304e40
--- /dev/null
+++ b/config/x86_64-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/x86_64-midipix/config.mk b/config/x86_64-midipix/config.mk
new file mode 100644
index 0000000..91f0e13
--- /dev/null
+++ b/config/x86_64-midipix/config.mk
@@ -0,0 +1,16 @@
+# platform
+PYTHON_PATH =
+PYTHON_PLATFORM = midipix
+
+
+# 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-midipix/pyconfig.h b/config/x86_64-midipix/pyconfig.h
new file mode 100644
index 0000000..87740b2
--- /dev/null
+++ b/config/x86_64-midipix/pyconfig.h
@@ -0,0 +1,13 @@
+#ifndef PY_PYCONFIG_H
+#define PY_PYCONFIG_H
+
+#include "osapi/modern.h"
+#include "osapi/rtld.h"
+#include "osapi/midipix.h"
+#include "toolchain/64-default.h"
+#include "toolchain/64-le-ieee.h"
+
+/* cf. Modules/posixmodule.c */
+#define HAVE_BROKEN_NICE 1
+
+#endif