libgit2/libgit2 — Issue #469: Add a test to determine if a compiled libgit2 was built with THREADSAFE
Author: nelhage
Created: 2011-10-29 22:49:25+00:00
State: open

It'd be awesome if there was a way to figure out if the libgit2 I'm linked against was built with -DTHREADSAFE. The use case is that I have a multithreaded program that uses libgit2, and while I can make sure I build libgit2 with -DTHREADSAFE myself, I'd like to be able to catch the case where a user links it against a libgit2 that is not thread-safe, and either fail fast with a warning, or add my own external locking.