diff --git a/tests.gyp b/tests.gyp index 84bd4941..af11b878 100644 --- a/tests.gyp +++ b/tests.gyp @@ -102,7 +102,11 @@ 'target_defaults': { 'configurations': {'Test': {}, 'Release': {}}, 'cflags_cc': ['-std=c++14'], - 'libraries': ['-ldl'], + 'conditions': [ + ['OS=="linux"', { + 'libraries': ['-ldl'], + }] + ], 'xcode_settings': { 'CLANG_CXX_LANGUAGE_STANDARD': 'c++14', 'ALWAYS_SEARCH_USER_PATHS': 'NO',