diff --git a/fortran/Makefile b/fortran/Makefile index ea81342f..a92681fc 100644 --- a/fortran/Makefile +++ b/fortran/Makefile @@ -97,12 +97,14 @@ FFLAGS = -O3 $(COMMON_FFLAGS) DEBUGFLAGS = -g -fbacktrace -ffpe-trap=invalid,overflow,zero -fbounds-check $(COMMON_FFLAGS) ifeq ($(shell uname -s),Darwin) SFFLAGS = -dynamiclib #-fpic -ifneq ($(CIBW_BUILD),) -SFFLAGS += -static-libgfortran -static-libgcc -static-libquadmath -endif else SFFLAGS = -shared -fpic endif + +ifneq ($(CIBW_BUILD),) +SFFLAGS += -static-libgfortran -static-libgcc -static-libquadmath +endif + #SFFLAGS = -shared -fPIC MODOUT = -J$(OUTPUT_DIR) SMODOUT = -J$(DLL_DIR)