From 825ee8ac5f0886d82a363acbb69f647f0810c29f Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Fri, 15 Jul 2016 17:40:37 +0200 Subject: [PATCH] examples/H5/Makefile.am - build static executables if debug is enabled --- examples/H5/Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/H5/Makefile.am b/examples/H5/Makefile.am index 4453ed2..fa8ad1d 100644 --- a/examples/H5/Makefile.am +++ b/examples/H5/Makefile.am @@ -18,6 +18,10 @@ LDADD += -lH5hutF AM_LDFLAGS += -L${abs_top_builddir}/src/Fortran/.libs endif +if ENABLE_DEBUG +AM_LDFLAGS += -static +endif + LDADD += -lH5hut noinst_PROGRAMS =