From 75c40bcc4827524d4de5b8458bf197c6c8e66e38 Mon Sep 17 00:00:00 2001 From: Zhang Xianyi Date: Thu, 19 Mar 2015 11:51:36 -0500 Subject: [PATCH] Refs #520. Fixed ONLY_CBLAS=1 compiling bug on OSX. --- exports/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/exports/Makefile b/exports/Makefile index f2f688191..1fdaf2213 100644 --- a/exports/Makefile +++ b/exports/Makefile @@ -100,7 +100,12 @@ else $(OBJCONV) @objconv.def ../$(LIBNAME) ../$(LIBNAME).renamed $(LIBDYNNAME) : ../$(LIBNAME).renamed osx.def endif +ifeq ($(NOFORTRAN), 2) +#only build cblas without Fortran + $(CC) $(CFLAGS) -all_load -headerpad_max_install_names -install_name $(CURDIR)/../$(LIBDYNNAME) -dynamiclib -o ../$(LIBDYNNAME) $< -Wl,-exported_symbols_list,osx.def $(FEXTRALIB) +else $(FC) $(FFLAGS) -all_load -headerpad_max_install_names -install_name $(CURDIR)/../$(LIBDYNNAME) -dynamiclib -o ../$(LIBDYNNAME) $< -Wl,-exported_symbols_list,osx.def $(FEXTRALIB) +endif dllinit.$(SUFFIX) : dllinit.c $(CC) $(CFLAGS) -c -o $(@F) -s $<