From f84f0c623cd2652fcf80ec47cb287cc29fd430c5 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Wed, 24 Oct 2018 15:39:16 +0200 Subject: Fix missing python lib path for matlab module --- build/linux/Makefile.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'build') diff --git a/build/linux/Makefile.in b/build/linux/Makefile.in index f4c5c20..13e1344 100644 --- a/build/linux/Makefile.in +++ b/build/linux/Makefile.in @@ -81,11 +81,16 @@ endif ifeq ($(python),yes) PYTHON = @PYTHON@ PYINCDIR := $(shell $(PYTHON) -c 'from __future__ import print_function; from distutils.sysconfig import get_python_inc; print(get_python_inc())') +PYLIBDIR := $(shell $(PYTHON) -c 'from distutils.sysconfig import get_config_var; import six; six.print_(get_config_var("LIBDIR"))') PYLIBVER = `basename $(PYINCDIR)` CPPFLAGS += -DASTRA_PYTHON -I$(PYINCDIR) PYCPPFLAGS := $(CPPFLAGS) PYCPPFLAGS += -I../include -PYLDFLAGS = $(MODLDFLAGS) + +# copy the current MODLDFLAGS to PYLDFLAGS, and then add flags for matlab/octave +PYLDFLAGS := $(MODLDFLAGS) +MODLDFLAGS += -L$(PYLIBDIR) + MODPYLIBS=-l$(PYLIBVER) endif -- cgit v1.2.3