autoconf-archive-maintainers | |
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch #10180] [PATCH] AX_LIB_HDF5: fix derivation of compile and link f
From: |
anonymous |
Subject: |
[patch #10180] [PATCH] AX_LIB_HDF5: fix derivation of compile and link flags for Fortran |
Date: |
Tue, 22 Feb 2022 10:43:09 -0500 (EST) |
URL:
<https://savannah.gnu.org/patch/?10180>
Summary: [PATCH] AX_LIB_HDF5: fix derivation of compile and
link flags for Fortran
Project: GNU Autoconf Archive
Submitted by: None
Submitted on: Tue 22 Feb 2022 03:43:07 PM UTC
Priority: 5 - Normal
Status: None
Assigned to: None
Originator Email: anlauf@gmx.de
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
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
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Tue 22 Feb 2022 03:43:07 PM UTC Name:
0001-AX_LIB_HDF5-fix-derivation-of-compile-and-link-flags.patch Size: 1KiB
By: None
Patch
<http://savannah.gnu.org/patch/download.php?file_id=52903>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/patch/?10180>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [patch #10180] [PATCH] AX_LIB_HDF5: fix derivation of compile and link flags for Fortran,
anonymous <=