bug-libtool
[Top][All Lists]
Advanced

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

Re: Portland Group C++ compiler: please support both pgCC and pgcpp alia


From: Ralf Wildenhues
Subject: Re: Portland Group C++ compiler: please support both pgCC and pgcpp alias
Date: Sun, 5 Aug 2007 13:45:33 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

Hi Tilman,

* Tilman Koschnick wrote on Fri, Aug 03, 2007 at 05:43:22PM CEST:
> 
> the Portland Group C++ compiler has two equivalent names that do the
> same: pgCC and pgcpp. libtool currently only supports the former one; it
> would be good if you could add support for both versions.

Thanks!  Applied to both branches as below.

Cheers,
Ralf

HEAD:
2007-08-05  Tilman Koschnick  <address@hidden>  (tiny change)

        * libltdl/m4/libtool.m4 (_LT_COMPILER_PIC, _LT_LANG_CXX_CONFIG)
        [ linux ]: Treat pgcpp as Portland Group C++ compiler as well.

Index: libltdl/m4/libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/libltdl/m4/libtool.m4,v
retrieving revision 1.113
diff -u -r1.113 libtool.m4
--- libltdl/m4/libtool.m4       22 Jul 2007 08:55:11 -0000      1.113
+++ libltdl/m4/libtool.m4       5 Aug 2007 11:38:39 -0000
@@ -3564,7 +3564,7 @@
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
            ;;
-         pgCC*)
+         pgCC* | pgcpp*)
            # Portland Group C++ compiler
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
@@ -5815,10 +5815,10 @@
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
            _LT_TAGVAR(whole_archive_flag_spec, 
$1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
            ;;
-          pgCC*)
+          pgCC* | pgcpp*)
             # Portland Group C++ compiler
            case `$CC -V` in
-           *pgCC\ [[1-5]]*)
+           *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
                rm -rf $tpldir~
                $CC --prelink_objects --instantiation_dir $tpldir $objs 
$libobjs $compile_deplibs~



branch-1-5:
2007-08-05  Tilman Koschnick  <address@hidden>  (tiny change)

        * libtool.m4 (_LT_AC_LANG_CXX_CONFIG)
        (AC_LIBTOOL_PROG_COMPILER_PIC): [ linux ]: Treat pgcpp as
        Portland Group C++ compiler as well.

Index: libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/Attic/libtool.m4,v
retrieving revision 1.314.2.185
diff -u -r1.314.2.185 libtool.m4
--- libtool.m4  3 Jul 2007 05:10:45 -0000       1.314.2.185
+++ libtool.m4  5 Aug 2007 11:41:18 -0000
@@ -3376,7 +3376,7 @@
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
        _LT_AC_TAGVAR(whole_archive_flag_spec, 
$1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
        ;;
-      pgCC*)
+      pgCC* | pgcpp*)
         # Portland Group C++ compiler
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects 
$libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o 
$lib'
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag 
$predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname 
${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
@@ -5100,7 +5100,7 @@
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
            ;;
-         pgCC*)
+         pgCC* | pgcpp*)
            # Portland Group C++ compiler.
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'




reply via email to

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