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"
pgi_libs.patch
Description: Binary data