From 0afed999cd9b44f35d771a57b7fefa40bffcea79 Mon Sep 17 00:00:00 2001 From: Gilles Gouaillardet Date: Mon, 11 Aug 2014 07:41:54 +0000 Subject: [PATCH] silence warnings on solaris 10 with gcc 3.4.3, no link flags is required to use pthreads. First try to link without any flags. This commit was SVN r32501. --- config/opal_config_pthreads.m4 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/config/opal_config_pthreads.m4 b/config/opal_config_pthreads.m4 index 1480d6111c..d8b56d56ec 100644 --- a/config/opal_config_pthreads.m4 +++ b/config/opal_config_pthreads.m4 @@ -11,6 +11,8 @@ dnl Copyright (c) 2004-2005 The Regents of the University of California. dnl All rights reserved. dnl Copyright (c) 2012 Cisco Systems, Inc. All rights reserved. dnl Copyright (c) 2014 Intel, Inc. All rights reserved. +dnl Copyright (c) 2014 Research Organization for Information Science +dnl and Technology (RIST). All rights reserved. dnl $COPYRIGHT$ dnl dnl Additional copyrights may follow @@ -338,7 +340,7 @@ AC_DEFUN([OPAL_INTL_POSIX_THREADS_SPECIAL_FLAGS_C], [ # C compiler # if test "$opal_pthread_c_success" = "0"; then - for pf in $pflags; do + for pf in "" $pflags; do AC_MSG_CHECKING([if C compiler and POSIX threads work with $pf]) CFLAGS="$orig_CFLAGS $pf" AC_LANG_PUSH(C) @@ -364,7 +366,7 @@ AC_DEFUN([OPAL_INTL_POSIX_THREADS_SPECIAL_FLAGS_CXX], [ # C++ compiler # if test "$opal_pthread_cxx_success" = "0"; then - for pf in $pflags; do + for pf in "" $pflags; do AC_MSG_CHECKING([if C++ compiler and POSIX threads work with $pf]) CXXFLAGS="$orig_CXXFLAGS $pf" AC_LANG_PUSH(C++) @@ -390,7 +392,7 @@ AC_DEFUN([OPAL_INTL_POSIX_THREADS_SPECIAL_FLAGS_FC], [ # Fortran compiler # if test "$opal_pthread_fortran_success" = "0" -a "$OMPI_WANT_FORTRAN_BINDINGS" = "1" -a $ompi_fortran_happy -eq 1; then - for pf in $pflags; do + for pf in "" $pflags; do AC_MSG_CHECKING([if Fortran compiler and POSIX threads work with $pf]) FCFLAGS="$orig_FCFLAGS $pf" AC_LANG_PUSH(C)