bug-libtool
[Top][All Lists]
Advanced

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

bug#27509: PGI compiler detection in libtool.m4


From: Dong, Min
Subject: bug#27509: PGI compiler detection in libtool.m4
Date: Tue, 27 Jun 2017 17:44:53 +0000
User-agent: Microsoft-MacOutlook/f.21.0.170409

Hi,

 

PGI compiler since 2017 has changed their default version output.

 

Before 2017:

$ pgcc -V

 

pgcc 16.9-0 64-bit target on x86-64 Linux -tp sandybridge

The Portland Group - PGI Compilers and Tools

Copyright (c) 2016, NVIDIA CORPORATION.  All rights reserved.

 

After 2017:

$ pgcc -V

 

pgcc 17.5-0 64-bit target on x86-64 Linux -tp sandybridge

PGI Compilers and Tools

Copyright (c) 2017, NVIDIA CORPORATION.  All rights reserved.

 

This caused configure script unable to detect compiler correctly, when it is in a wrapper such as mpicc.

 

Patch:

 

--- m4/libtool.m4.orig  2017-06-27 13:40:45.538501739 -0400

+++ m4/libtool.m4       2017-06-27 13:41:03.109205222 -0400

@@ -4759,7 +4759,7 @@

          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'

          _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'

          ;;

-       *Portland\ Group*)

+       *Portland\ Group* | *PGI\ Compilers*)

          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'

          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'

          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'

 

Best,

Min Dong


reply via email to

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