aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2015-01-17 18:58:04 +0100
committerMike McQuaid2015-01-17 18:58:04 +0100
commit3ecff952405202ceb8aed024655015afd6423530 (patch)
treee784cc4f838fec2ac31bcbb7c24838f65c8ab800 /Library
parent75d57af3b33524ef91c7d3d0d614e55de086cdbf (diff)
downloadhomebrew-3ecff952405202ceb8aed024655015afd6423530.tar.bz2
clang-format: fix runtime linking on 10.8 and below.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/clang-format.rb4
1 files changed, 4 insertions, 0 deletions
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!"