summaryrefslogtreecommitdiffstats
path: root/TOOLS
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2014-04-27 09:05:07 +0200
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2014-04-27 10:40:01 +0200
commitce48da9e027c9e8b685a74f04e9163952c5a5320 (patch)
treef057c2be29fcc121070dd938779b876b0beb76c2 /TOOLS
parentae0c8ca219184bce33ec713b43868b6f5b22f055 (diff)
downloadmpv-ce48da9e027c9e8b685a74f04e9163952c5a5320.tar.bz2
mpv-ce48da9e027c9e8b685a74f04e9163952c5a5320.tar.xz
build: use -pthread when available
Our code currently tries to link -lpthread and adds stuff like -D_REENTRANT based on the target platform. GCC actually supports to just pass a -pthread compiler and linker flag that will automatically enable threading and define the correct symbols for the platform, so let's try to just use that as our first choice. clang also supports -pthread but it must be used only as a compiler flag, so we also take care of that scenario with this commit.
Diffstat (limited to 'TOOLS')
0 files changed, 0 insertions, 0 deletions