Statically-linked ph5diff patch/fix


#1

When configured with the --enable-static-exec option, the ph5diff program may end up being linked dynamically because the appropriate linker flag is not passed. This patch should fix it:

From de4d9bb6df4521ac272f069552389a7eeb43f74b Mon Sep 17 00:00:00 2001
From: Eric Bavier <bavier@cray.com>
Date: Fri, 28 Jun 2019 15:27:32 -0500
Subject: [PATCH] Fix linking of ph5diff with '--enable-static-exec'.

* tools/src/h5diff/Makefile.am (ph5diff_LDFLAGS): New variable with
$(LT_STATIC_EXEC).
---
 tools/src/h5diff/Makefile.am | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/src/h5diff/Makefile.am b/tools/src/h5diff/Makefile.am
index 3957e59..f613d7e 100644
--- a/tools/src/h5diff/Makefile.am
+++ b/tools/src/h5diff/Makefile.am
@@ -32,6 +32,7 @@ bin_PROGRAMS=h5diff $(H5PDIFF)

 # Add h5diff specific linker flags here
 h5diff_LDFLAGS = $(LT_STATIC_EXEC) $(AM_LDFLAGS)
+ph5diff_LDFLAGS = $(LT_STATIC_EXEC) $(AM_LDFLAGS)

 # Source files for the program
 h5diff_SOURCES=h5diff_main.c h5diff_common.c
--
2.0.0