From 3ecff952405202ceb8aed024655015afd6423530 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 17 Jan 2015 18:58:04 +0100 Subject: clang-format: fix runtime linking on 10.8 and below. --- Library/Formula/clang-format.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library/Formula') diff --git a/Library/Formula/clang-format.rb b/Library/Formula/clang-format.rb index 391c8503b..71b6b3f1b 100644 --- a/Library/Formula/clang-format.rb +++ b/Library/Formula/clang-format.rb @@ -26,6 +26,10 @@ class ClangFormat < Formula depends_on "ninja" => :build depends_on "subversion" => :build + # It'll link to GCC's libatomic in this case so need to manually specify + # the dependency for runtime linking. + depends_on "gcc" if MacOS.version <= :mountain_lion + fails_with :clang do build 503 cause "Host Clang must be able to find libstdc++4.7 or newer!" -- cgit v1.2.3