Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Issue 286: --disable-coverage drops "-pthread" option

-pthread was added as part of setting up the gcov options
  • Loading branch information...
commit ad27588391e4f5f85f07f9d734334ade4cc5dbb0 1 parent 890dfb7
@trondn trondn authored
Showing with 3 additions and 5 deletions.
  1. +3 −5 configure.ac
View
8 configure.ac
@@ -49,6 +49,8 @@ AC_DEFUN([DETECT_SUNCC],
])
DETECT_SUNCC([CFLAGS="-mt $CFLAGS"], [])
+AS_IF([test "$ICC" = "yes" -o "$GCC" = "yes"],
+ [CFLAGS="$CFLAGS -pthread"])
if test "$ICC" = "no"; then
AC_PROG_CC_C99
@@ -140,11 +142,7 @@ AC_ARG_ENABLE(coverage,
[AS_HELP_STRING([--disable-coverage],[Disable code coverage])])
if test "x$enable_coverage" != "xno"; then
- if test "$ICC" = "yes"
- then
- dnl ICC trying to be gcc, but not well
- CFLAGS="$CFLAGS -pthread"
- elif test "$GCC" = "yes"
+ if test "$GCC" = "yes" -a "$ICC" != "yes"
then
CFLAGS="$CFLAGS -pthread"
AC_PATH_PROG([PROFILER], [gcov], "no", [$PATH])
Please sign in to comment.
Something went wrong with that request. Please try again.