From 8ff9b1d717a6fa67333a19f6c173be82ac1223d5 Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Wed, 5 May 2021 17:58:58 +0200 Subject: [PATCH] Fix trexio.pc.in (missing -ltrexio and -lhdf5_hl) --- configure.ac | 1 + trexio.pc.in | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index d600ca5..7f43569 100644 --- a/configure.ac +++ b/configure.ac @@ -90,6 +90,7 @@ elif test "x${hdf5}" = xyes; then FCFLAGS="${HDF5_CFLAGS} ${FCFLAGS}" LIBS="${HDF5_LIBS} -lhdf5_hl ${LIBS}" PKG_HDF5="hdf5" + PKG_LIBS="${PKG_LIBS} -lhdf5_hl" else PKG_HDF5="" PKG_LIBS="${PKG_LIBS} ${HDF5_LIBS} -lhdf5_hl" diff --git a/trexio.pc.in b/trexio.pc.in index 3dde84d..69484d4 100644 --- a/trexio.pc.in +++ b/trexio.pc.in @@ -8,7 +8,8 @@ Description: TREX Input/Output library URL: https://github.com/trex-coe/trexio Version: @PACKAGE_VERSION@ Cflags: -I${includedir} @PKG_CFLAGS@ -Libs: -L${libdir} -lm @PKG_LIBS@ +Libs: -L${libdir} -ltrexio -lm @PKG_LIBS@ Requires: @PKG_HDF5@ +Requires.private: @PKG_HDF5@