From ac99985a978542d0e9668e4c423cabe6b87ae29f Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Tue, 8 Aug 2017 12:59:37 -0700 Subject: [PATCH] Only link to libdl on linux --- tests.gyp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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',