From 0221f59197f39ab9328a55b8d71e3662362d0937 Mon Sep 17 00:00:00 2001 From: Gilles Gouaillardet Date: Thu, 15 Oct 2015 10:17:57 +0900 Subject: [PATCH] pmix1xx configury: invoke sub-configure with CFLAGS and CPPFLAGS on the command line if CFLAGS and/or CPPFLAGS are passed to the ompi configure command line, pmix1xx configure will not use the correct ones previously passed in the environment see discussion started at http://www.open-mpi.org/community/lists/devel/2015/10/18159.php Thanks Siegmar Gross for bringing this to our attention --- opal/mca/pmix/pmix1xx/configure.m4 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/opal/mca/pmix/pmix1xx/configure.m4 b/opal/mca/pmix/pmix1xx/configure.m4 index 6865f611ad..50b1e76e50 100644 --- a/opal/mca/pmix/pmix1xx/configure.m4 +++ b/opal/mca/pmix/pmix1xx/configure.m4 @@ -46,11 +46,9 @@ AC_DEFUN([MCA_opal_pmix_pmix1xx_CONFIG],[ CFLAGS="$OPAL_CFLAGS_BEFORE_PICKY $OPAL_VISIBILITY_CFLAGS" fi CPPFLAGS="-I$OPAL_TOP_SRCDIR -I$OPAL_TOP_BUILDDIR -I$OPAL_TOP_SRCDIR/opal/include -I$OPAL_TOP_BUILDDIR/opal/include $CPPFLAGS" - export CFLAGS - export CPPFLAGS OPAL_CONFIG_SUBDIR([$opal_pmix_pmix1xx_basedir/pmix], - [$opal_pmix_pmix1xx_args $opal_subdir_args], + [$opal_pmix_pmix1xx_args $opal_subdir_args 'CFLAGS=$CFLAGS' 'CPPFLAGS=$CPPFLAGS'], [opal_pmix_pmix1xx_happy=1], [opal_pmix_pmix1xx_happy=0]) if test $opal_pmix_pmix1xx_happy -eq 1; then