mirror of https://git.wownero.com/dsc/mxe.git
package lapack: use $(TARGET)-ranlib and add test program
(cherry picked from commit ae7bd20d37
)
This commit is contained in:
parent
2068ddd143
commit
664c3b6cd1
|
@ -0,0 +1,10 @@
|
|||
*
|
||||
* This file is part of MXE.
|
||||
* See index.html for further information.
|
||||
*
|
||||
INTEGER MAJOR, MINOR, PATCH
|
||||
*
|
||||
CALL ILAVER ( MAJOR,MINOR, PATCH )
|
||||
WRITE(*,*) "LAPACK ",MAJOR,".",MINOR,".",PATCH
|
||||
*
|
||||
END
|
|
@ -20,6 +20,12 @@ define $(PKG)_BUILD
|
|||
cd '$(1)' && cmake \
|
||||
-DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
|
||||
-DCMAKE_AR='$(PREFIX)/bin/$(TARGET)-ar' \
|
||||
-DCMAKE_RANLIB='$(PREFIX)/bin/$(TARGET)-ranlib' \
|
||||
.
|
||||
$(MAKE) -C '$(1)/SRC' -j '$(JOBS)' install
|
||||
|
||||
'$(TARGET)-gfortran' \
|
||||
-W -Wall -Werror -pedantic \
|
||||
'$(2).f' -o '$(PREFIX)/$(TARGET)/bin/test-lapack.exe' \
|
||||
-llapack
|
||||
endef
|
||||
|
|
Loading…
Reference in New Issue