Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • libxcb libxcb
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 40
    • Issues 40
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 11
    • Merge requests 11
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • xorgxorg
  • lib
  • libxcblibxcb
  • Merge requests
  • !45
The source project of this merge request has been removed.

configure.ac: drop pthread-stubs on FreeBSD

Merged Jan Beich requested to merge (removed):pthread-stubs into master Feb 10, 2023
  • Overview 1
  • Pipelines 0
  • Changes 1

libpthread-stubs >= 0.4 isn't granular enough: checks too few or often unused. For example, libxcb uses

$ pkg info -ql libxcb | grep '.so$' | xargs nm -D | fgrep pthread_ | sort -u
                 U pthread_cond_broadcast
                 U pthread_cond_destroy
                 U pthread_cond_init
                 U pthread_cond_signal
                 U pthread_cond_wait
                 U pthread_mutex_destroy
                 U pthread_mutex_init
                 U pthread_mutex_lock
                 U pthread_mutex_unlock

all of which are stubbed

  • https://github.com/DragonFlyBSD/DragonFlyBSD/blob/DragonFly_RELEASE_6_4/lib/libc/gen/_pthread_stubs.c
  • https://github.com/freebsd/freebsd-src/blob/releng/13.1/lib/libc/gen/_pthread_stubs.c

but libpthread-stubs itself wants pthread_condattr_*, so adds -pthread which expands to just -lpthread.

CC @manu @valpackett

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: pthread-stubs