Dont link against librt and libdl on OpenBSD
These are part of libc there
This commit is contained in:
parent
7172115559
commit
e38690e8d9
1 changed files with 2 additions and 1 deletions
3
setup.py
3
setup.py
|
|
@ -46,6 +46,7 @@
|
|||
)
|
||||
_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')
|
||||
|
|
|
|||
Loading…
Reference in a new issue