Don't add Apple Frameworks twice

These Frameworks are added again a couple lines below in the check for `module == 'cocoa'`.
This commit is contained in:
Luflosi 2019-08-11 02:26:12 +02:00
parent 685497fc8c
commit 599be7ddc9
No known key found for this signature in database
GPG Key ID: 14140F703B7D8362

View File

@ -32,10 +32,6 @@ def init_env(env, pkg_config, at_least_version, test_compile, module='x11'):
if is_macos: if is_macos:
ans.cppflags.append('-DGL_SILENCE_DEPRECATION') ans.cppflags.append('-DGL_SILENCE_DEPRECATION')
ans.ldpaths.extend(
"-framework Cocoa -framework IOKit -framework CoreFoundation -framework CoreVideo".
split()
)
else: else:
ans.ldpaths.extend('-lrt -lm -ldl'.split()) ans.ldpaths.extend('-lrt -lm -ldl'.split())
with open(os.path.join(base, 'source-info.json')) as f: with open(os.path.join(base, 'source-info.json')) as f: