Export CBLAS funtions on Windows DLL.
This commit is contained in:
parent
0bbf955d4c
commit
a7a7751be7
|
@ -58,16 +58,16 @@ dll : ../$(LIBDLLNAME)
|
||||||
|
|
||||||
dll2 : libgoto2_shared.dll
|
dll2 : libgoto2_shared.dll
|
||||||
|
|
||||||
../$(LIBDLLNAME) : ../$(LIBNAME) libgoto2.def dllinit.$(SUFFIX)
|
../$(LIBDLLNAME) : ../$(LIBNAME) libopenblas.def dllinit.$(SUFFIX)
|
||||||
$(RANLIB) ../$(LIBNAME)
|
$(RANLIB) ../$(LIBNAME)
|
||||||
ifeq ($(BINARY32), 1)
|
ifeq ($(BINARY32), 1)
|
||||||
$(DLLWRAP) -o ../$(LIBDLLNAME) --def libgoto2.def \
|
$(DLLWRAP) -o ../$(LIBDLLNAME) --def libopenblas.def \
|
||||||
--entry _dllinit@12 -s dllinit.$(SUFFIX) --dllname $(@F) ../$(LIBNAME) $(FEXTRALIB)
|
--entry _dllinit@12 -s dllinit.$(SUFFIX) --dllname $(@F) ../$(LIBNAME) $(FEXTRALIB)
|
||||||
-lib /machine:i386 /def:libgoto2.def
|
-lib /machine:i386 /def:libopenblas.def
|
||||||
else
|
else
|
||||||
$(DLLWRAP) -o ../$(LIBDLLNAME) --def libgoto2.def \
|
$(DLLWRAP) -o ../$(LIBDLLNAME) --def libopenblas.def \
|
||||||
--entry $(FU)dllinit -s dllinit.$(SUFFIX) --dllname $(@F) ../$(LIBNAME) $(FEXTRALIB)
|
--entry $(FU)dllinit -s dllinit.$(SUFFIX) --dllname $(@F) ../$(LIBNAME) $(FEXTRALIB)
|
||||||
-lib /machine:X64 /def:libgoto2.def
|
-lib /machine:X64 /def:libopenblas.def
|
||||||
endif
|
endif
|
||||||
|
|
||||||
libgoto2_shared.dll : ../$(LIBNAME) libgoto2_shared.def
|
libgoto2_shared.dll : ../$(LIBNAME) libgoto2_shared.def
|
||||||
|
@ -75,7 +75,7 @@ libgoto2_shared.dll : ../$(LIBNAME) libgoto2_shared.def
|
||||||
-Wl,--whole-archive ../$(LIBNAME) -Wl,--no-whole-archive \
|
-Wl,--whole-archive ../$(LIBNAME) -Wl,--no-whole-archive \
|
||||||
-Wl,--out-implib,libgoto2_shared.lib $(FEXTRALIB)
|
-Wl,--out-implib,libgoto2_shared.lib $(FEXTRALIB)
|
||||||
|
|
||||||
libgoto2.def : gensymbol
|
libopenblas.def : gensymbol
|
||||||
perl ./gensymbol win2k $(ARCH) dummy $(EXPRECISION) $(NO_CBLAS) $(NO_LAPACK) > $(@F)
|
perl ./gensymbol win2k $(ARCH) dummy $(EXPRECISION) $(NO_CBLAS) $(NO_LAPACK) > $(@F)
|
||||||
|
|
||||||
libgoto2_shared.def : gensymbol
|
libgoto2_shared.def : gensymbol
|
||||||
|
|
|
@ -389,6 +389,13 @@ if ($ARGV[0] eq "win2k"){
|
||||||
$count ++;
|
$count ++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($ARGV[4] == 0) {
|
||||||
|
foreach $objs (@cblasobjs) {
|
||||||
|
print "\t",$objs,"=$objs"," \@", $count, "\n";
|
||||||
|
$count ++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue