Skip to content

Instantly share code, notes, and snippets.

@jwakely
Created July 7, 2015 10:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jwakely/84e905daa67a4c06f3e6 to your computer and use it in GitHub Desktop.
Save jwakely/84e905daa67a4c06f3e6 to your computer and use it in GitHub Desktop.
Linker script for using GCC's std::thread with static linking
/* Ensure we don't use gthread weak symbols. */
EXTERN(pthread_cond_broadcast)
EXTERN(pthread_cond_destroy)
EXTERN(pthread_cond_signal)
EXTERN(pthread_cond_wait)
EXTERN(pthread_create)
EXTERN(pthread_detach)
EXTERN(pthread_equal)
EXTERN(pthread_join)
EXTERN(pthread_mutex_lock)
EXTERN(pthread_mutex_unlock)
EXTERN(pthread_once)
EXTERN(pthread_setcancelstate)
INPUT( -lpthread )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment