[ovs-git] [openvswitch/ovs] 7ab4b0: configure: Check for more specific function to pul...

GitHub noreply at github.com
Mon Nov 19 20:28:55 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 7ab4b06537842c0e0de85146b85df52ca189b6d3
      https://github.com/openvswitch/ovs/commit/7ab4b06537842c0e0de85146b85df52ca189b6d3
  Author: Ben Pfaff <blp at ovn.org>
  Date:   2018-11-19 (Mon, 19 Nov 2018)

  Changed paths:
    M configure.ac

  Log Message:
  -----------
  configure: Check for more specific function to pull in pthread library.

On my laptop, pthread_create() is always available without -lpthread, but
when I use -fsanitize=address, -lpthread is required to pull in other
threading functions such as pthread_rwlock_tryrdlock().  Thus, with
-fsanitize=address I have to manually add -lpthread to link commands one
way or another.  This commit avoids that problem by checking for a
function that is sometimes only available in -lpthread.

Tested-by: Yifeng Sun <pkusunyifeng at gmail.com>
Reviewed-by: Yifeng Sun <pkusunyifeng at gmail.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>



      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the git mailing list