diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-01-20 22:23:15 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-01-20 22:23:15 +0100 |
commit | a7c3795a2e65233ba2d187d680acc83bf6bf4ef5 (patch) | |
tree | c396119db602b9b98f4ad22eea72e991510939b2 /src/Make_cyg_ming.mak | |
parent | 23c4f7183cca0ff8d2c5c2ef9a5c62f6307e07ea (diff) | |
download | vim-git-a7c3795a2e65233ba2d187d680acc83bf6bf4ef5.tar.gz |
patch 7.4.1146v7.4.1146
Problem: Can't build with Python 3 interface using MingW.
Solution: Update the Makefile. (Yasuhiro Matsumoto, Ken Takata)
Diffstat (limited to 'src/Make_cyg_ming.mak')
-rw-r--r-- | src/Make_cyg_ming.mak | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/Make_cyg_ming.mak b/src/Make_cyg_ming.mak index 79628a823..a73d77d6a 100644 --- a/src/Make_cyg_ming.mak +++ b/src/Make_cyg_ming.mak @@ -258,17 +258,25 @@ endif ifndef PYTHON3_VER PYTHON3_VER=31 endif +ifndef DYNAMIC_PYTHON3_DLL +DYNAMIC_PYTHON3_DLL=python$(PYTHON3_VER).dll +endif +ifdef PYTHON3_HOME +PYTHON3_HOME_DEF=-DPYTHON3_HOME=\"$(PYTHON3_HOME)\" +endif ifeq (no,$(DYNAMIC_PYTHON3)) -PYTHON3LIB=-L$(PYTHON3)/libs -lPYTHON$(PYTHON3_VER) +PYTHON3LIB=-L$(PYTHON3)/libs -lpython$(PYTHON3_VER) endif +ifndef PYTHON3INC ifeq ($(CROSS),no) PYTHON3INC=-I $(PYTHON3)/include else PYTHON3INC=-I $(PYTHON3)/win32inc endif endif +endif # TCL interface: # TCL=[Path to TCL directory] (Set inside Make_cyg.mak or Make_ming.mak) @@ -482,7 +490,7 @@ endif ifdef PYTHON3 CFLAGS += -DFEAT_PYTHON3 ifeq (yes, $(DYNAMIC_PYTHON3)) -CFLAGS += -DDYNAMIC_PYTHON3 -DDYNAMIC_PYTHON3_DLL=\"PYTHON$(PYTHON3_VER).dll\" +CFLAGS += -DDYNAMIC_PYTHON3 -DDYNAMIC_PYTHON3_DLL=\"$(DYNAMIC_PYTHON3_DLL)\" endif endif @@ -814,7 +822,7 @@ $(OUTDIR)/if_python.o : if_python.c if_py_both.h $(INCL) $(CC) -c $(CFLAGS) $(PYTHONINC) $(PYTHON_HOME_DEF) $< -o $@ $(OUTDIR)/if_python3.o : if_python3.c if_py_both.h $(INCL) - $(CC) -c $(CFLAGS) $(PYTHON3INC) $< -o $@ + $(CC) -c $(CFLAGS) $(PYTHON3INC) $(PYTHON3_HOME_DEF) $< -o $@ $(OUTDIR)/%.o : %.c $(INCL) $(CC) -c $(CFLAGS) $< -o $@ |