Build import libs as .dll.a instead of .lib
authorTimothy Gu <timothygu99@gmail.com>
Fri, 27 Jun 2014 18:58:14 +0000 (11:58 -0700)
committerTimothy Gu <timothygu99@gmail.com>
Fri, 27 Jun 2014 20:34:09 +0000 (13:34 -0700)
This is MinGW convention.

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Makefile.install
exports/Makefile

index 9fc8d7a..7eb7b5f 100644 (file)
@@ -83,7 +83,7 @@ ifeq ($(OSNAME), Darwin)
 endif
 ifeq ($(OSNAME), WINNT)
        @-cp $(LIBDLLNAME) $(OPENBLAS_BINARY_DIR)
-       @-cp $(LIBPREFIX).lib $(OPENBLAS_LIBRARY_DIR)
+       @-cp $(LIBDLLNAME).a $(OPENBLAS_LIBRARY_DIR)
 endif
 ifeq ($(OSNAME), CYGWIN_NT)
        @-cp $(LIBDLLNAME) $(OPENBLAS_BINARY_DIR)
index 70fde4f..a2e7ee3 100644 (file)
@@ -84,7 +84,7 @@ dll  : ../$(LIBDLLNAME)
 ../$(LIBDLLNAME) : ../$(LIBNAME) libopenblas.def dllinit.$(SUFFIX)
        $(RANLIB) ../$(LIBNAME)
        $(CC) $(CFLAGS) $(LDFLAGS) libopenblas.def dllinit.$(SUFFIX) \
-       -shared -o ../$(LIBDLLNAME) -Wl,--out-implib,../$(LIBPREFIX).lib \
+       -shared -o ../$(LIBDLLNAME) -Wl,--out-implib,../$(LIBDLLNAME).a \
        -Wl,--whole-archive ../$(LIBNAME) -Wl,--no-whole-archive $(FEXTRALIB) $(EXTRALIB)
 
 libopenblas.def : gensymbol