package lapack: use $(TARGET)-ranlib and add test program

(cherry picked from commit ae7bd20d37)
This commit is contained in:
Tony Theodore 2012-05-02 02:31:25 +10:00 committed by Volker Grabsch
parent 2068ddd143
commit 664c3b6cd1
2 changed files with 16 additions and 0 deletions

10
src/lapack-test.f Normal file
View File

@ -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

View File

@ -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