From c973a7326e08e033fde02818f042bf631054e352 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 27 Sep 2017 14:18:55 +0530 Subject: [PATCH] Dont link against rt on macOS --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 7938e26e1..61f28ba5f 100755 --- a/setup.py +++ b/setup.py @@ -170,7 +170,9 @@ def init_env(debug=False, sanitize=False, native_optimizations=True, profile=Fal else: glfw_ldflags = pkg_config('glfw3', '--libs') glew_libs = pkg_config('glew', '--libs') - ldpaths = pylib + glew_libs + font_libs + glfw_ldflags + ['-lunistring', '-lrt'] + ldpaths = pylib + glew_libs + font_libs + glfw_ldflags + ['-lunistring'] + if not isosx: + ldpaths += ['-lrt'] try: os.mkdir(build_dir)