From c415ecf39e91fe87705cbd4f18265ba91fe6a30c Mon Sep 17 00:00:00 2001 From: Gilles Gouaillardet Date: Tue, 10 Nov 2015 11:33:12 +0900 Subject: [PATCH] test/monitoring: build monitoring_prof lib only if dynamic libs are built Thanks Mark Santcroos for reporting this --- test/monitoring/Makefile.am | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/monitoring/Makefile.am b/test/monitoring/Makefile.am index 94959bdf77..028e6810a8 100644 --- a/test/monitoring/Makefile.am +++ b/test/monitoring/Makefile.am @@ -3,6 +3,8 @@ # of Tennessee Research Foundation. All rights # reserved. # Copyright (c) 2013-2015 Inria. All rights reserved. +# Copyright (c) 2015 Research Organization for Information Science +# and Technology (RIST). All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -14,13 +16,15 @@ # of 'make check' if PROJECT_OMPI noinst_PROGRAMS = monitoring_test - lib_LTLIBRARIES = monitoring_prof.la - monitoring_test_SOURCES = monitoring_test.c monitoring_test_LDFLAGS = $(WRAPPER_EXTRA_LDFLAGS) monitoring_test_LDADD = $(top_builddir)/ompi/libmpi.la $(top_builddir)/opal/libopen-pal.la +if MCA_BUILD_ompi_pml_monitoring_DSO + lib_LTLIBRARIES = monitoring_prof.la monitoring_prof_la_SOURCES = monitoring_prof.c monitoring_prof_la_LDFLAGS=-module -avoid-version -shared $(WRAPPER_EXTRA_LDFLAGS) monitoring_prof_la_LIBADD = $(top_builddir)/ompi/libmpi.la $(top_builddir)/opal/libopen-pal.la endif + +endif