diff --git a/configure.ac b/configure.ac index 6c99d376..4618e6de 100755 --- a/configure.ac +++ b/configure.ac @@ -952,7 +952,9 @@ OPAL_TOP_BUILDDIR="`pwd`" OPAL_SETUP_RPATH AS_IF([test "$enable_pmi_simple" = "yes"], - [WRAPPER_COMPILER_EXTRA_LIBS="$WRAPPER_COMPILER_EXTRA_LIBS -lpmi_simple"]) + [WRAPPER_COMPILER_EXTRA_LIBS="$WRAPPER_COMPILER_EXTRA_LIBS -lpmi_simple" + LDFLAGS="$LDFLAGS -lpmi_simple" + ]) AC_MSG_CHECKING([for OPAL LDFLAGS]) RPATHIFY_LDFLAGS([WRAPPER_COMPILER_EXTRA_LDFLAGS]) diff --git a/src/Makefile.am b/src/Makefile.am index 427b0387..752802d4 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -130,6 +130,7 @@ endif if USE_PMI_SIMPLE AM_CPPFLAGS += -I$(top_srcdir)/pmi-simple +AM_LDFLAGS = -L$(top_builddir)/pmi-simple -lpmi_simple libsma_la_SOURCES += \ runtime-pmi.c else