From c3000ac0d42ecb2ae3a6335164daa067879ce468 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 1 Dec 2018 18:44:30 -0500 Subject: config: x86_64-linux-musl, x86_64-nt64-midipix: defined PYTHON_PLATFORM. --- config/x86_64-linux-musl/config.mk | 1 + config/x86_64-nt64-midipix/config.mk | 1 + project/extras.mk | 1 + 3 files changed, 3 insertions(+) diff --git a/config/x86_64-linux-musl/config.mk b/config/x86_64-linux-musl/config.mk index 68a2aef..35e6785 100644 --- a/config/x86_64-linux-musl/config.mk +++ b/config/x86_64-linux-musl/config.mk @@ -1,4 +1,5 @@ PYTHON_PATH = +PYTHON_PLATFORM = linux2 CFLAGS_NCURSES = -I$(SYSROOT)/usr/local/include/ncurses -I$(SYSROOT)/usr/include/ncurses LDFLAGS_NCURSES = -Wl,--as-needed -lpanelw -lncursesw -Wl,--no-as-needed diff --git a/config/x86_64-nt64-midipix/config.mk b/config/x86_64-nt64-midipix/config.mk index 9bae290..eb7f2bd 100644 --- a/config/x86_64-nt64-midipix/config.mk +++ b/config/x86_64-nt64-midipix/config.mk @@ -1,4 +1,5 @@ PYTHON_PATH = +PYTHON_PLATFORM = midipix CFLAGS_NCURSES = -I$(SYSROOT)/usr/local/include/ncurses -I$(SYSROOT)/usr/include/ncurses LDFLAGS_NCURSES = -Wl,--as-needed -lpanelw -lncursesw -ltinfo -Wl,--no-as-needed diff --git a/project/extras.mk b/project/extras.mk index 15e018c..94dcde9 100644 --- a/project/extras.mk +++ b/project/extras.mk @@ -3,6 +3,7 @@ PYTHON_VER = 2.7 CFLAGS_COMMON += -I$(SOURCE_DIR)/Include +CFLAGS_CONFIG += -DPLATFORM=\"$(PYTHON_PLATFORM)\" CFLAGS_CONFIG += -DVERSION=\"$(PYTHON_VER)\" CFLAGS_CONFIG += -DPREFIX=\"$(PREFIX)\" CFLAGS_CONFIG += -DEXEC_PREFIX=\"$(EXEC_PREFIX)\" -- cgit v1.2.3