Skip to content

Commit 8615d6e

Browse files
committed
Build import libs as .dll.a instead of .lib
This is MinGW convention. Signed-off-by: Timothy Gu <timothygu99@gmail.com>
1 parent d10db52 commit 8615d6e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Makefile.install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ ifeq ($(OSNAME), Darwin)
8383
endif
8484
ifeq ($(OSNAME), WINNT)
8585
@-cp $(LIBDLLNAME) $(OPENBLAS_BINARY_DIR)
86-
@-cp $(LIBPREFIX).lib $(OPENBLAS_LIBRARY_DIR)
86+
@-cp $(LIBDLLNAME).a $(OPENBLAS_LIBRARY_DIR)
8787
endif
8888
ifeq ($(OSNAME), CYGWIN_NT)
8989
@-cp $(LIBDLLNAME) $(OPENBLAS_BINARY_DIR)

exports/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ dll : ../$(LIBDLLNAME)
8484
../$(LIBDLLNAME) : ../$(LIBNAME) libopenblas.def dllinit.$(SUFFIX)
8585
$(RANLIB) ../$(LIBNAME)
8686
$(CC) $(CFLAGS) $(LDFLAGS) libopenblas.def dllinit.$(SUFFIX) \
87-
-shared -o ../$(LIBDLLNAME) -Wl,--out-implib,../$(LIBPREFIX).lib \
87+
-shared -o ../$(LIBDLLNAME) -Wl,--out-implib,../$(LIBDLLNAME).a \
8888
-Wl,--whole-archive ../$(LIBNAME) -Wl,--no-whole-archive $(FEXTRALIB) $(EXTRALIB)
8989

9090
libopenblas.def : gensymbol

0 commit comments

Comments
 (0)