Skip to content

Commit

Permalink
bugfix: use CURDIR instead of PWD so that it works with -C
Browse files Browse the repository at this point in the history
  • Loading branch information
Guymer committed Sep 27, 2024
1 parent 247b16c commit 5e13141
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5e13141

Please sign in to comment.