--- tools/build/src/tools/gcc.py.orig 2019-04-09 21:36:57.000000000 +0200 +++ tools/build/src/tools/gcc.py 2020-06-30 23:05:12.356653000 +0200 @@ -714,6 +714,9 @@ elif host_os_name.endswith('BSD'): flags('gcc', 'OPTIONS', ['multi'], ['-pthread']) # there is no -lrt on BSD + elif host_os_name == 'BSDSUniX': + flags('gcc', 'OPTIONS', ['multi'], ['-pthread']) + # just in case... elif host_os_name == 'DragonFly': flags('gcc', 'OPTIONS', ['multi'], ['-pthread']) # there is no -lrt on BSD - DragonFly is a FreeBSD variant,