opal_setup_cc: remove the -fno-common flag
Per open-mpi/ompi#381, this probably wasn't a good idea. (cherry picked from commit 8ec69f3375f546752960ba3fcb7bd0957eb595c7)
Этот коммит содержится в:
родитель
f28238af59
Коммит
ffe891a460
@ -128,22 +128,10 @@ AC_DEFUN([OPAL_SETUP_CC],[
|
|||||||
# gcc-impersonating compilers won't accept them.
|
# gcc-impersonating compilers won't accept them.
|
||||||
OPAL_CFLAGS_BEFORE_PICKY="$CFLAGS"
|
OPAL_CFLAGS_BEFORE_PICKY="$CFLAGS"
|
||||||
|
|
||||||
# If we want picky, see if the -fno-common flag is supported
|
|
||||||
if test $WANT_PICKY_COMPILER -eq 1; then
|
if test $WANT_PICKY_COMPILER -eq 1; then
|
||||||
CFLAGS_orig=$CFLAGS
|
CFLAGS_orig=$CFLAGS
|
||||||
add=
|
add=
|
||||||
|
|
||||||
CFLAGS="$CFLAGS -fno-common"
|
|
||||||
AC_CACHE_CHECK([if $CC supports -fno-common],
|
|
||||||
[opal_cv_cc_fno_common],
|
|
||||||
[AC_TRY_COMPILE([], [],
|
|
||||||
[opal_cv_cc_fno_common=yes],
|
|
||||||
[opal_cv_cc_fno_common=no])
|
|
||||||
])
|
|
||||||
if test "$opal_cv_cc_fno_common" = "yes" ; then
|
|
||||||
add="-fno-common"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# These flags are likely GCC-specific (or, more specifically,
|
# These flags are likely GCC-specific (or, more specifically,
|
||||||
# we don't have general tests for each one, and we know they
|
# we don't have general tests for each one, and we know they
|
||||||
# work with all versions of GCC that we have used throughout
|
# work with all versions of GCC that we have used throughout
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user