diff --git a/opal/mca/pmix/pmix1xx/configure.m4 b/opal/mca/pmix/pmix1xx/configure.m4 index fc19f8bc3f..6865f611ad 100644 --- a/opal/mca/pmix/pmix1xx/configure.m4 +++ b/opal/mca/pmix/pmix1xx/configure.m4 @@ -66,10 +66,8 @@ AC_DEFUN([MCA_opal_pmix_pmix1xx_CONFIG],[ ["$PMIX_VERSION"], [Version of PMIx]) - # Finally, add some flags to the wrapper compiler if we're - # building with developer headers so that our headers can - # be found. - pmix1xx_WRAPPER_EXTRA_CPPFLAGS='-I${includedir}/openmpi/$opal_pmix_pmix1xx_basedir/pmix -I${includedir}/openmpi/$opal_pmix_pmix1xx_basedir/pmix/include' + # Finally, add a flag to support static builds + pmix_pmix1xx_WRAPPER_EXTRA_LIBS=-lpmix CFLAGS=$opal_pmix_pmix1xx_save_CFLAGS CPPFLAGS=$opal_pmix_pmix1xx_save_CPPFLAGS