[BACK]Return to pthread.buildlink3.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / mk

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /pkgsrc/mk/pthread.buildlink3.mk between version 1.4 and 1.9

version 1.4, 2004/03/29 15:16:58 version 1.9, 2004/07/01 13:09:39
Line 141  PKG_SKIP_REASON= "${PKGNAME} requires a 
Line 141  PKG_SKIP_REASON= "${PKGNAME} requires a 
 .endif  .endif
   
 .if ${PTHREAD_TYPE} == "native"  .if ${PTHREAD_TYPE} == "native"
 BUILDLINK_PACKAGES:=            ${BUILDLINK_PACKAGES:Npthread}  #
 BUILDLINK_PACKAGES+=            pthread  # Link the native pthread libraries and headers into ${BUILDLINK_DIR}.
 USE_BUILTIN.pthread=            YES  #
 BUILDLINK_PREFIX.pthread=       /usr  BUILDLINK_PREFIX.pthread=       /usr
 BUILDLINK_CFLAGS.pthread=       -pthread  
 BUILDLINK_LDFLAGS.pthread=      # empty  BUILDLINK_LDFLAGS.pthread=      # empty
   
   # only pass -pthread on platforms known to support it.
   .  if ${OPSYS} == "FreeBSD" || ${OPSYS} == "Linux" || ${OPSYS} == "NetBSD"
   BUILDLINK_CFLAGS.pthread=       -pthread
   .  else
   BUILDLINK_CFLAGS.pthread=       # empty
   .  endif
   
 #  #
 # Handle systems which have pthreads functions in libc_r such as  # Handle systems which have pthreads functions in libc_r such as
 # FreeBSD 5.x, or fall back to libc if we don't find libc_r.  # FreeBSD 5.x, or fall back to libc if we don't find libc_r.
Line 155  BUILDLINK_LDFLAGS.pthread= # empty
Line 162  BUILDLINK_LDFLAGS.pthread= # empty
 BUILDLINK_LDADD.pthread=        -lpthread  BUILDLINK_LDADD.pthread=        -lpthread
 .  elif exists(/usr/lib/libc_r.so)  .  elif exists(/usr/lib/libc_r.so)
 BUILDLINK_LDADD.pthread=        -lc_r  BUILDLINK_LDADD.pthread=        -lc_r
   # In OpenBSD there is no libpthread.so, just libpthread.so.X.X.
   .  elif ${OPSYS} == "OpenBSD"
   _CHECK_LIBPTH!= \
           if [ -f /usr/lib/libpthread.so.* ]; then \
                   echo "yes";     \
           else                    \
                   echo "no";      \
           fi
   .    if ${_CHECK_LIBPTH} == "yes"
   BUILDLINK_LDADD.pthread=        -lpthread
   .    endif
 .  else  .  else
 BUILDLINK_LDADD.pthread=        # empty  BUILDLINK_LDADD.pthread=        # empty
 .  endif  .  endif

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.9

CVSweb <webmaster@jp.NetBSD.org>