patchGNU Autoconf Archive - Patches: patch #10180, [PATCH] AX_LIB_HDF5: fix...

 
 

patch #10180: [PATCH] AX_LIB_HDF5: fix derivation of compile and link flags for Fortran

Submitter:  None
Submitted:  Tue 22 Feb 2022 03:43:07 PM UTC
   
 
Priority:  5 - Normal Status:  None
Assigned to:  None Originator Email:  -email is unavailable-
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 22 Feb 2022 03:43:07 PM UTC, original submission:  

Hello,

there is a (likely) copy&paste error in m4/ax_lib_hdf5.m4
that affects Fortran:

When deriving HDF5_FFLAGS and HDF5_FLIBS from the output of
"h5fc -show" (or h5pfc -show), both -Idir and -Ldir are
added to HDF5_FFLAGS.  However, -Ldir should be added to
HDF5_FLIBS instead.  Some compilers (e.g. flang) are unhappy
when they see both -c and -L on the command line.

Furthermore, it is possible that the Fortran hdf5-libraries and
module files are installed in a directory separate from the
C versions.  Therefore -Ldir should be added in front of
HDF5_FLIBS.

The attached patch attempts to fix this.

Thanks,
Harald

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by None (Submitted the item)
  •  

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-02-22 None Attached File- Added 0001-AX_LIB_HDF5-fix-derivation-of-compile-and-link-flags.patch, #52903

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code