Ticket #12230: macports-pthreadlibs.patch

File macports-pthreadlibs.patch, 579 bytes (added by afb@…, 17 years ago)

macports-pthreadlibs.patch

  • foundation.m4

     
    110110        # Test if pthreads are required to link against
    111111        # libobjc - this is the case on FreeBSD.
    112112
     113        if test x"${PTHREAD_LIBS}" = x; then
     114                # Make sure that PTHREAD_LIBS has been set
     115                AC_CHECK_LIB(pthread, pthread_attr_init, PTHREAD_LIBS="-lpthread")
     116        fi
    113117        AC_MSG_CHECKING([if linking libobjc requires pthreads])
    114118        AC_CACHE_VAL(mp_cv_objc_req_pthread, [
    115119                # First, test if objc links without pthreads