@@ -99,11 +99,9 @@ ifeq ($(OSNAME), Darwin) | |||||
endif | endif | ||||
ifeq ($(OSNAME), WINNT) | ifeq ($(OSNAME), WINNT) | ||||
$(MAKE) -C exports dll | $(MAKE) -C exports dll | ||||
-ln -fs $(LIBDLLNAME) $(LIBPREFIX).dll | |||||
endif | endif | ||||
ifeq ($(OSNAME), CYGWIN_NT) | ifeq ($(OSNAME), CYGWIN_NT) | ||||
$(MAKE) -C exports dll | $(MAKE) -C exports dll | ||||
-ln -fs $(LIBDLLNAME) $(LIBPREFIX).dll | |||||
endif | endif | ||||
tests : | tests : | ||||
@@ -724,8 +724,8 @@ endif | |||||
endif | endif | ||||
LIBDLLNAME = $(LIBPREFIX).dll | |||||
LIBSONAME = $(LIBNAME:.$(LIBSUFFIX)=.so) | LIBSONAME = $(LIBNAME:.$(LIBSUFFIX)=.so) | ||||
LIBDLLNAME = $(LIBNAME:.$(LIBSUFFIX)=.dll) | |||||
LIBDYNNAME = $(LIBNAME:.$(LIBSUFFIX)=.dylib) | LIBDYNNAME = $(LIBNAME:.$(LIBSUFFIX)=.dylib) | ||||
LIBDEFNAME = $(LIBNAME:.$(LIBSUFFIX)=.def) | LIBDEFNAME = $(LIBNAME:.$(LIBSUFFIX)=.def) | ||||
LIBEXPNAME = $(LIBNAME:.$(LIBSUFFIX)=.exp) | LIBEXPNAME = $(LIBNAME:.$(LIBSUFFIX)=.exp) | ||||
@@ -66,6 +66,11 @@ dll : ../$(LIBDLLNAME) | |||||
dll2 : libgoto2_shared.dll | dll2 : libgoto2_shared.dll | ||||
# On Windows, we only generate a DLL without a version suffix. This is because | |||||
# applications which link against the dynamic library reference a fixed DLL name | |||||
# in their import table. By instead using a stable name it is possible to | |||||
# upgrade between library versions, without needing to re-link an application. | |||||
# For more details see: https://github.com/xianyi/OpenBLAS/issues/127. | |||||
../$(LIBDLLNAME) : ../$(LIBNAME) libopenblas.def dllinit.$(SUFFIX) | ../$(LIBDLLNAME) : ../$(LIBNAME) libopenblas.def dllinit.$(SUFFIX) | ||||
$(RANLIB) ../$(LIBNAME) | $(RANLIB) ../$(LIBNAME) | ||||
ifeq ($(BINARY32), 1) | ifeq ($(BINARY32), 1) | ||||