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)\"