From 67267f55bd9afbbc8aad1e127585e9701a1bc705 Mon Sep 17 00:00:00 2001 From: Min RK Date: Mon, 29 Jul 2024 12:50:59 +0200 Subject: [PATCH] Fix typo in LDFLAGS_save_xcode variable name resulted in effectively overriding LDFLAGS='' on mac because save and restore variable named did not match Signed-off-by: Min RK (cherry picked from commit 5d6026e041a76bfd11d22a0b12bf3476fc1f39a1) --- config/ompi_setup_fc.m4 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/ompi_setup_fc.m4 b/config/ompi_setup_fc.m4 index e1d4d029023..cd36b4771bf 100644 --- a/config/ompi_setup_fc.m4 +++ b/config/ompi_setup_fc.m4 @@ -210,13 +210,13 @@ end program LIBS=$LIBS_save_xcode AS_IF([test $xcode_happy -eq 1], - [ # Restore LDFLAFGS + the new flags (i.e., get rid of the + [ # Restore LDFLAGS + the new flags (i.e., get rid of the # "-L." we added for this test) - LDFLAGS="$LDFLAGS_xcode_save $1" + LDFLAGS="$LDFLAGS_save_xcode $1" $2], [ # If we failed the test, reset LDFLAGS back to its # original value. - LDFLAGS=$LDFLAGS_xcode_save + LDFLAGS=$LDFLAGS_save_xcode $3]) OPAL_VAR_SCOPE_POP