diff options
author | julie <julielangou@users.noreply.github.com> | 2011-08-09 18:59:44 +0000 |
---|---|---|
committer | julie <julielangou@users.noreply.github.com> | 2011-08-09 18:59:44 +0000 |
commit | c81b790f918d5d23908d2de2658d1d6728aa73eb (patch) | |
tree | 0efe37d2d58deedfe9c42602ee35e64d1b5adf1a /CMAKE | |
parent | 3e15d21f628a3bef95bc3248751b3c4ce6c5e278 (diff) | |
download | lapack-c81b790f918d5d23908d2de2658d1d6728aa73eb.tar.gz lapack-c81b790f918d5d23908d2de2658d1d6728aa73eb.tar.bz2 lapack-c81b790f918d5d23908d2de2658d1d6728aa73eb.zip |
Commiting BRAD patch
Here is a patch for lapack to provide MS-format dll import libraries
from the MinGW GNU toolchain. It is ready for others to try before it
goes upstream. You just need to have MinGW GNU Fortran 4.x and one of
the VS IDEs installed. Configure a MinGW build with BUILD_SHARED_LIBS
set to ON. The resulting build (and install) tree will provide both
GNU-format and MS-format import libraries for the DLLs.
A C application built with MSVC and linked to the MinGW-built lapack
DLLs will run but requires the GNU runtime DLLs from MinGW to be available.
I tested this with both 32-bit and 64-bit builds. For the latter I used
the mingw64 gfortran. In both cases I just put the GNU runtime directory
in my PATH. I think both libgfortran-3.dll and libgcc_s_dw2-1.dll are
needed.
This may be used to create a binary LAPACK distribution for Windows that
will work without any GNU tools installed. One needs only to provide the
MinGW GNU runtime libraries along with blas.dll and lapack.dll.
-Brad
Diffstat (limited to 'CMAKE')
-rw-r--r-- | CMAKE/lapack-config-build.cmake.in | 1 | ||||
-rw-r--r-- | CMAKE/lapack-config-install.cmake.in | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/CMAKE/lapack-config-build.cmake.in b/CMAKE/lapack-config-build.cmake.in index 8d60cc88..e1ea54f8 100644 --- a/CMAKE/lapack-config-build.cmake.in +++ b/CMAKE/lapack-config-build.cmake.in @@ -1 +1,2 @@ include("@LAPACK_BINARY_DIR@/lapack-targets.cmake") +@LAPACK_GNUtoMS_BUILD@ diff --git a/CMAKE/lapack-config-install.cmake.in b/CMAKE/lapack-config-install.cmake.in index 0c55fc17..b0e917d3 100644 --- a/CMAKE/lapack-config-install.cmake.in +++ b/CMAKE/lapack-config-install.cmake.in @@ -1,2 +1,3 @@ get_filename_component(_SELF_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) include(${_SELF_DIR}/lapack-targets.cmake) +@LAPACK_GNUtoMS_INSTALL@ |