This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] ada: Use liblapack and libblas instead of libgnalasup
- From: Samuel Tardieu <sam at rfc1149 dot net>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 22 Apr 2008 09:04:34 +0200
- Subject: [PATCH] ada: Use liblapack and libblas instead of libgnalasup
- Organisation: RFC1149 (see http://www.rfc1149.net/)
Interfaces.Fortran.Blas makes reference to a "gnalasup" library, which
is an AdaCore bundle containing LAPACK and BLAS.
It is better to make standard libraries such as "lapack" and "blas"
the default rather than the private bundle. A vendor wanting to build
a "gnalasup" specific version may use an alternate body for
Interfaces.Fortran.Blas.
Tested on i686-pc-linux-gnu.
Ok for trunk?
gcc/ada/
* i-forbla.adb: Link against -llapack and -lblas by default
instead of the private -lgnalasup.
---
gcc/ada/i-forbla.adb | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/gcc/ada/i-forbla.adb b/gcc/ada/i-forbla.adb
index f54497d..bda6084 100644
--- a/gcc/ada/i-forbla.adb
+++ b/gcc/ada/i-forbla.adb
@@ -32,12 +32,13 @@
------------------------------------------------------------------------------
-- This Interfaces.Fortran.Blas package body contains the required linker
--- pragmas for automatically linking with the gnalasup linear algebra support
+-- pragmas for automatically linking with the LAPACK linear algebra support
-- library, and the systems math library. Alternative bodies can be supplied
-- if different sets of libraries are needed.
package body Interfaces.Fortran.BLAS is
pragma Linker_Options ("-lgnala");
- pragma Linker_Options ("-lgnalasup");
+ pragma Linker_Options ("-llapack");
+ pragma Linker_Options ("-lblas");
pragma Linker_Options ("-lm");
end Interfaces.Fortran.BLAS;
--
1.5.5.1.245.g486aa