From bd25084952096963570d0c665366cb915db96e75 Mon Sep 17 00:00:00 2001 From: mgr Date: Sun, 18 Sep 2022 16:19:00 +0200 Subject: [PATCH] Make it compile under Ubuntu-20.04 and possibly other versions Using python-2.7 --- Makefile | 6 ++++-- hostinfo | 0 setup | 0 3 files changed, 4 insertions(+), 2 deletions(-) mode change 100644 => 100755 hostinfo mode change 100644 => 100755 setup diff --git a/Makefile b/Makefile index 0e24b2d..757e25c 100644 --- a/Makefile +++ b/Makefile @@ -57,6 +57,8 @@ PYTHON_LIB ?= $(PYTHON_TOP)/lib/$(PYTHON_VER) # PYTHON_INCLUDE ?= $(PYTHON_TOP)/include/$(PYTHON_VER) +PYTHON_CONFIG ?= $(shell $(PYTHON_VER)-config --configdir) + ## YACC should be set to your yacc equivalent if it's not called ## 'yacc'. For example, ## YACC=bison; export YACC @@ -298,8 +300,8 @@ y.tab.c: grammar.y #-------------------------------------------------------------------------- # Configuration file for Python module set -config.o : $(PYTHON_LIB)/config/config.c - $(CC) $(CFLAGS) -DNO_MAIN -c $(PYTHON_LIB)/config/config.c +config.o : $(PYTHON_CONFIG)/config.c + $(CC) $(CFLAGS) -DNO_MAIN -c $< #-------------------------------------------------------------------------- # Dependencies diff --git a/hostinfo b/hostinfo old mode 100644 new mode 100755 diff --git a/setup b/setup old mode 100644 new mode 100755