libtool-patches
[Top][All Lists]
Advanced

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

Patch to support PGI compiler option to append libraries to the link ste


From: Christopher Hulbert
Subject: Patch to support PGI compiler option to append libraries to the link step
Date: Tue, 16 Jun 2009 11:40:09 -0400

PGI has compiler options to append libraries for PGI-compiled fortran
and C++ code when performing a link. The attached patch lets
ltmain.m4sh recognize them.

diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh
index 6f44d35..795bf4a 100644
--- a/libltdl/config/ltmain.m4sh
+++ b/libltdl/config/ltmain.m4sh
@@ -4496,8 +4496,10 @@ func_mode_link ()
       # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
       # @file GCC response files
       # -tp=* Portland pgcc target processor selection
+      # -pgf77libs, -pgf90libs, -pgcpplibs Portland compiler opts to append lib
       -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
-      -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*)
+      -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|-pgcpplibs|
+      -pgf77libs|-pgf90libs)
         func_quote_for_eval "$arg"
        arg="$func_quote_for_eval_result"
         func_append compile_command " $arg"

Attachment: pgi_libs.patch
Description: Binary data


reply via email to

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