From 5e13141aaf2dcb8eac3e0cce9f82a6c796b934c5 Mon Sep 17 00:00:00 2001 From: Thomas Guymer Date: Fri, 27 Sep 2024 17:58:47 +0100 Subject: [PATCH] bugfix: use CURDIR instead of PWD so that it works with -C --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 37eb724..e555c1d 100644 --- a/Makefile +++ b/Makefile @@ -576,5 +576,5 @@ mod_safe_mpi.o &: $(MOD_SAFE_MPI_SRC) mod_f2py.so: $(MOD_F2PY_SRC) \ mod_safe.mod $(RM) -f mod_f2py.*.so mod_f2py.so - FC=$(FC) FFLAGS="-fopenmp $(LANG_OPTS) $(WARN_OPTS) $(OPTM_OPTS) $(MACH_OPTS)" $(PYTHON3) -m numpy.f2py -c mod_f2py.F90 -m mod_f2py --backend meson -lgomp -I$(PWD) + FC=$(FC) FFLAGS="-fopenmp $(LANG_OPTS) $(WARN_OPTS) $(OPTM_OPTS) $(MACH_OPTS)" $(PYTHON3) -m numpy.f2py -c mod_f2py.F90 -m mod_f2py --backend meson -lgomp -I$(CURDIR) $(LN) -s mod_f2py$(SUFFIX) mod_f2py.so