diff options
author | wm4 <wm4@nowhere> | 2015-01-11 02:23:02 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-01-11 02:23:02 +0100 |
commit | 3b091995a03f431cc8c14e2e4488af6f66191621 (patch) | |
tree | 49ead1574fc24fe49140f472c7e18f3e36dda2be /waftools/checks | |
parent | e96c08ecb542fc7dc670cc9fd4abb6feb1679d15 (diff) | |
download | mpv-3b091995a03f431cc8c14e2e4488af6f66191621.tar.bz2 mpv-3b091995a03f431cc8c14e2e4488af6f66191621.tar.xz |
win32: drop hacks for possibly broken static pthreads-win32 linking
We now use threads and other pthread API a lot, and not always we use it
from threads created with pthread_create() (or the main thread). As I
understand, with static linking we would have to use
pthread_win32_thread_attach/detach_np() every time we enter or leave a
foreign thread. We don't do this, and it's not feasible either, so it's
just broken.
This still should work with dynamic pthreads-win32. The MinGW pthread
implementation should be unaffected from all of this.
Diffstat (limited to 'waftools/checks')
-rw-r--r-- | waftools/checks/custom.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/waftools/checks/custom.py b/waftools/checks/custom.py index fb45d8697c..97bcf9cc5c 100644 --- a/waftools/checks/custom.py +++ b/waftools/checks/custom.py @@ -33,7 +33,6 @@ def check_pthreads(ctx, dependency_identifier): 'freebsd': '-D_THREAD_SAFE', 'netbsd': '-D_THREAD_SAFE', 'openbsd': '-D_THREAD_SAFE', - 'win32': '-DPTW32_STATIC_LIB', }.get(ctx.env.DEST_OS, '') libs = ['pthreadGC2', 'pthread'] checkfn = check_cc(fragment=pthreads_program, cflags=platform_cflags) |