[waf] Remove -lrt & add -latomic

This commit is contained in:
Fangrui Song 2018-01-27 10:59:40 -08:00
parent d605217c1a
commit 41eb1c863c

View File

@ -270,8 +270,11 @@ def build(bld):
lib = [] lib = []
if sys.platform.startswith('linux'): if sys.platform.startswith('linux'):
lib.append('rt') # For __atomic_* when lock free instructions are unavailable
# (either through hardware or OS support)
lib.append('atomic')
lib.append('pthread') lib.append('pthread')
# loguru calls dladdr
lib.append('dl') lib.append('dl')
elif sys.platform.startswith('freebsd'): elif sys.platform.startswith('freebsd'):
# loguru::stacktrace_as_stdstring calls backtrace_symbols # loguru::stacktrace_as_stdstring calls backtrace_symbols