summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-12-14 19:33:25 -0500
committermidipix <writeonce@midipix.org>2018-12-18 20:38:38 -0500
commit11fe1bf64acded045c9bf356684ebd17fed9515a (patch)
tree13bf153f99fc1eb418cf94588c47b168228c8cf5
parent5d6440f2e0bc43442c8c0ef504c3fe63e1ca4708 (diff)
downloadsbpython3-11fe1bf64acded045c9bf356684ebd17fed9515a.tar.bz2
sbpython3-11fe1bf64acded045c9bf356684ebd17fed9515a.tar.xz
config: imported defs for x86_64-{linux|midipix} minus the pyext bits.
-rw-r--r--config/x86_64-linux/config.c18
-rw-r--r--config/x86_64-linux/config.mk16
-rw-r--r--config/x86_64-linux/pyconfig.h14
-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
6 files changed, 94 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
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