From 0a58c87e58465a6b993892e87d956c5d7569a5c1 Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Tue, 22 Apr 2008 07:14:31 +0000 Subject: [PATCH] i-forbla.adb: Link against -llapack and -lblas by default instead of the private -lgnalasup. gcc/ada/ * i-forbla.adb: Link against -llapack and -lblas by default instead of the private -lgnalasup. From-SVN: r134550 --- gcc/ada/ChangeLog | 5 +++++ gcc/ada/i-forbla.adb | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 79f8440982c..d4a76a68b04 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,8 @@ +2008-04-22 Samuel Tardieu + + * i-forbla.adb: Link against -llapack and -lblas by default + instead of the private -lgnalasup. + 2008-04-21 Olivier Hainque Access to most C builtins from Ada diff --git a/gcc/ada/i-forbla.adb b/gcc/ada/i-forbla.adb index f54497d9413..bda6084262f 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;