From 08a28c9ae491682af1817392a23fb349626144a7 Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Mon, 26 Apr 2021 22:46:43 +0200 Subject: [PATCH] Using pkg-config for hdf5 in Makefile --- src/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index 2aa1ff0..f2c90ba 100644 --- a/src/Makefile +++ b/src/Makefile @@ -9,8 +9,8 @@ CFLAGS=-fPIC -fexceptions -Wall -Werror -Wpedantic -Wextra FC=gfortran -g FFLAGS=-fPIC -fcheck=all -Waliasing -Wampersand -Wconversion -Wsurprising -Wintrinsics-std -Wno-tabs -Wintrinsic-shadow -Wline-truncation -Wreal-q-constant -Wuninitialized -fbacktrace -ffpe-trap=zero,overflow,underflow -finit-real=nan -LIBS= -L/usr/lib/x86_64-linux-gnu/hdf5/serial/ -lz -lm -lhdf5 -lhdf5_hl -lgfortran -INCLUDE = -I/usr/include/hdf5/serial +LIBS= $(shell pkg-config --libs hdf5) -lhdf5_hl -lgfortran +INCLUDE = $(shell pkg-config --cflags hdf5) endif ifeq ($(COMPILER),INTEL)