1
1

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.
Этот коммит содержится в:
Rainer Keller 2016-05-25 09:12:39 +02:00
родитель 927d3f4c3c
Коммит 3727cba9bb
2 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -391,9 +391,13 @@ AC_DEFUN([OPAL_FLAGS_UNIQ],[
opal_found=0 opal_found=0
opal_i=`expr $opal_count + 1` opal_i=`expr $opal_count + 1`
;; ;;
-framework)
opal_found=0
opal_i=`expr $opal_count + 1`
;;
--param) --param)
ompi_found=0 opal_found=0
ompi_i=`expr $ompi_count + 1` opal_i=`expr $opal_count + 1`
;; ;;
esac esac

Просмотреть файл

@ -64,12 +64,14 @@ fi
# OS X Lion started deprecating the system openssl. Let's just disable # OS X Lion started deprecating the system openssl. Let's just disable
# all deprecation warnings on OS X. # all deprecation warnings on OS X.
if test "$GCC" = "yes" ; then
case "$host_os" in case "$host_os" in
darwin*) darwin*)
CFLAGS="$CFLAGS -Wno-deprecated-declarations" CFLAGS="$CFLAGS -Wno-deprecated-declarations"
;; ;;
esac esac
fi
AC_ARG_ENABLE(gcc-warnings, AC_ARG_ENABLE(gcc-warnings,
AS_HELP_STRING(--enable-gcc-warnings, enable verbose warnings with GCC)) AS_HELP_STRING(--enable-gcc-warnings, enable verbose warnings with GCC))