libtool-patches
[Top][All Lists]
Advanced

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

Re: Patch to support PGI compiler option to append libraries to the link


From: Ralf Wildenhues
Subject: Re: Patch to support PGI compiler option to append libraries to the link step
Date: Tue, 16 Jun 2009 20:05:53 +0200
User-agent: Mutt/1.5.20 (2009-06-15)

Hello Christopher,

* Christopher Hulbert wrote on Tue, Jun 16, 2009 at 05:40:09PM CEST:
> 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.

Please explain what these switches do (or point to documentation),
so we can find out whether it's the right thing for libtool to just
ignore and pass through these switches, or whether it would need to
take any further action.

Other than that, you can use `-Wc,FLAG' or `-Xcompiler FLAG' to get
flags by libtool, undetected, as a workaround.

Thanks,
Ralf

> --- 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)





reply via email to

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