Skip to content

Commit 3727cba

Browse files
committed
Fix compilation for FreePGI on OSX
Our checks and the ones of libevent are somewhat flawed. If adding multiple "-framework" to CXXFLAGS or CFLAGS, we strip the keyword from the command-line, not good. libevent however assumes plain gcc without testing properly that the compiler supports -Wno-deprecated-declarations.
1 parent 927d3f4 commit 3727cba

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

config/opal_functions.m4

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,9 +391,13 @@ AC_DEFUN([OPAL_FLAGS_UNIQ],[
391391
opal_found=0
392392
opal_i=`expr $opal_count + 1`
393393
;;
394+
-framework)
395+
opal_found=0
396+
opal_i=`expr $opal_count + 1`
397+
;;
394398
--param)
395-
ompi_found=0
396-
ompi_i=`expr $ompi_count + 1`
399+
opal_found=0
400+
opal_i=`expr $opal_count + 1`
397401
;;
398402
esac
399403

opal/mca/event/libevent2022/libevent/configure.ac

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,14 @@ fi
6464

6565
# OS X Lion started deprecating the system openssl. Let's just disable
6666
# all deprecation warnings on OS X.
67+
if test "$GCC" = "yes" ; then
6768
case "$host_os" in
6869

6970
darwin*)
7071
CFLAGS="$CFLAGS -Wno-deprecated-declarations"
7172
;;
7273
esac
74+
fi
7375

7476
AC_ARG_ENABLE(gcc-warnings,
7577
AS_HELP_STRING(--enable-gcc-warnings, enable verbose warnings with GCC))

0 commit comments

Comments
 (0)