libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PIC flags not found for mpif77(ifort)


From: Ralf Wildenhues
Subject: Re: PIC flags not found for mpif77(ifort)
Date: Wed, 15 Dec 2010 21:21:48 +0100
User-agent: Mutt/1.5.20 (2010-08-04)

* Christian Rössel wrote on Wed, Dec 15, 2010 at 04:38:13PM CET:
> Am 12/10/2010 6:55 PM, schrieb Ralf Wildenhues:
> > Alternatively, the untested patch below should help as well.  Can you
> > try it out?
> 
> Unfortunately the patch didn't work. configure does not execute the new
> case branch although the innermost condition matches.

Hmm.  Is $GCC = yes for this compiler?  That would be surprising.
Why else would the new branch not be matched?

> BTW, the same problem occurs for mpif77 and mpif90 using the PGI
> compilers. Called with -V they produce:
> 
> pgf90 10.9-0 64-bit target on x86-64 Linux -tp core2-64
> Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
> Copyright 2000-2010, STMicroelectronics, Inc. All Rights Reserved.

I suppose that could be fixed with the diff below on top
(pending the fix for the issue above).

Thanks,
Ralf

diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4
index e735c75..7323986 100644
--- a/libltdl/m4/libtool.m4
+++ b/libltdl/m4/libtool.m4
@@ -4343,6 +4343,11 @@ m4_if([$1], [CXX], [
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
          ;;
+       *Portland\ Group*)
+         _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
+         _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+         ;;
        esac
        ;;
       esac



reply via email to

[Prev in Thread] Current Thread [Next in Thread]