Dont link against librt and libdl on OpenBSD

These are part of libc there
This commit is contained in:
Kovid Goyal 2020-05-21 11:43:55 +05:30
parent 7172115559
commit e38690e8d9
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -46,6 +46,7 @@ version = tuple(
)
_plat = sys.platform.lower()
is_macos = 'darwin' in _plat
is_openbsd = 'openbsd' in _plat
Env = glfw.Env
env = Env()
PKGCONFIG = os.environ.get('PKGCONFIG_EXE', 'pkg-config')
@ -344,7 +345,7 @@ def kitty_env() -> Env:
ans.ldpaths += pylib + font_libs + gl_libs + libpng
if is_macos:
ans.ldpaths.extend('-framework Cocoa'.split())
else:
elif not is_openbsd:
ans.ldpaths += ['-lrt']
if '-ldl' not in ans.ldpaths:
ans.ldpaths.append('-ldl')