Skip to content

Commit 75c40bc

Browse files
committed
Refs #520. Fixed ONLY_CBLAS=1 compiling bug on OSX.
1 parent b62f9f4 commit 75c40bc

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

exports/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,12 @@ else
100100
$(OBJCONV) @objconv.def ../$(LIBNAME) ../$(LIBNAME).renamed
101101
$(LIBDYNNAME) : ../$(LIBNAME).renamed osx.def
102102
endif
103+
ifeq ($(NOFORTRAN), 2)
104+
#only build cblas without Fortran
105+
$(CC) $(CFLAGS) -all_load -headerpad_max_install_names -install_name $(CURDIR)/../$(LIBDYNNAME) -dynamiclib -o ../$(LIBDYNNAME) $< -Wl,-exported_symbols_list,osx.def $(FEXTRALIB)
106+
else
103107
$(FC) $(FFLAGS) -all_load -headerpad_max_install_names -install_name $(CURDIR)/../$(LIBDYNNAME) -dynamiclib -o ../$(LIBDYNNAME) $< -Wl,-exported_symbols_list,osx.def $(FEXTRALIB)
108+
endif
104109

105110
dllinit.$(SUFFIX) : dllinit.c
106111
$(CC) $(CFLAGS) -c -o $(@F) -s $<

0 commit comments

Comments
 (0)