Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
CMake
CMake
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,246
    • Issues 3,246
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 11
    • Merge Requests 11
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • External Wiki
    • External Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CMake
  • CMakeCMake
  • Merge Requests
  • !3040

Merged
Opened Feb 28, 2019 by Jerry@JerryShihContributor

FindThreads: Use complete program to test for pthreads in libc

  • Overview 27
  • Commits 1
  • Pipelines 7
  • Changes 1

Our check for just pthread_create is not sufficient because there are cases where that symbol may be found in libc but not all of pthreads. We first tried to address this in !2629 (merged) by switching to pthread_kill, but that had to be reverted by !3022 (merged) because there are other cases where pthread_kill is in libc but the rest of pthreads is not. Update our check to try a complete program using pthreads as an actual application might.

Fixes: #18994 (closed)

Edited Mar 05, 2019 by Brad King
Assignee
Assign to
Reviewer
Request review from
3.15.0
Milestone
3.15.0 (Past due)
Assign milestone
Time tracking
Reference: cmake/cmake!3040
Source branch: find-pthread-update