From 124fd9afbdb4781048ceef84cdf7f9186127d365 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Mon, 21 Nov 2016 17:31:08 -0800 Subject: [PATCH] Add more whitelisted host libraries Add AppKit, Foundation and Security to darwin for libchrome. Add -lm and -lversion to windows for llvm. Test: m -j libLLVMObject Change-Id: Ie5c922d3fbb41fba1de5f1ce9e530683bf411c5a --- cc/config/x86_darwin_host.go | 3 +++ cc/config/x86_windows_host.go | 1 + 2 files changed, 4 insertions(+) diff --git a/cc/config/x86_darwin_host.go b/cc/config/x86_darwin_host.go index a6d4aaf86..18acef8aa 100644 --- a/cc/config/x86_darwin_host.go +++ b/cc/config/x86_darwin_host.go @@ -100,8 +100,11 @@ var ( "pthread", "z", }, "-l"), + "-framework AppKit", "-framework CoreFoundation", + "-framework Foundation", "-framework IOKit", + "-framework Security", ) ) diff --git a/cc/config/x86_windows_host.go b/cc/config/x86_windows_host.go index ab593e94b..4aad9c8ef 100644 --- a/cc/config/x86_windows_host.go +++ b/cc/config/x86_windows_host.go @@ -85,6 +85,7 @@ var ( "pthread", "userenv", "uuid", + "version", "ws2_32", }, "-l") )