Changeset eb7c6b in git


Ignore:
Timestamp:
Sep 12, 2014, 12:20:09 PM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
3b6f1bf8adb986d207f385b4473052dca49baf56
Parents:
cad9d1320047d98fd4177239334b76e7ccee061c
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2014-09-12 12:20:09+02:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2014-09-12 12:20:56+02:00
Message:
changed test for pthread, avoiding a libtool/gcc bug
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    rcad9d1 reb7c6b  
    5656
    5757# Checks for libraries.
     58
     59# This test for -lpthread etc has to come before AX_PTHREAD,
     60# because libtool tends to ignore -pthread in linking shared C++-libs
     61# see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
     62# (happens with ubuntu 14.04)
     63AC_SEARCH_LIBS(sem_wait,[rt pthreads pthread],[],[
     64  AC_MSG_ERROR([sem_wait not found in rt,pthreads,pthread])
     65])
     66
    5867#AC_CHECK_LIB(pthread,pthread_create)
    5968AX_PTHREAD([], [
     
    7079# Set the correct PTHREAD flags and, if needed, change the compiler to one that is pthread-enabled.
    7180CC="$PTHREAD_CC"
    72 PTHREAD_LDFLAGS="$PTHREAD_CFLAGS"
     81CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
     82LDFLAGS="$LDFLAGS $PTHREAD_LDFLAGS"
    7383
    7484AC_SUBST(PTHREAD_CFLAGS)
Note: See TracChangeset for help on using the changeset viewer.