aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/tinyxml.rb
diff options
context:
space:
mode:
authorSteven Peters2015-01-12 23:21:18 -0800
committerJack Nagel2015-01-17 22:58:56 -0600
commit991b6b702edd332587e644a91cdbc7865d25cdf6 (patch)
tree5077c7180ef918238ad84af3538341317f0b8ae9 /Library/Formula/tinyxml.rb
parent9ef258aa6dc6106cb3016d1d096dc5509e337f60 (diff)
downloadhomebrew-991b6b702edd332587e644a91cdbc7865d25cdf6.tar.bz2
Fix brew test linking errors in several formula on 10.10
OS X 10.10 seems to require "-L{lib}" as a C/C++ compiler argument in order to link properly. This is causing several brew test failures. This patch modifies several formula in a single commit by adding "-L{lib}" to the brew test ENV.cc argument lists. I manually verified that these specific tests are failing with the change and passing with it on 10.10. To identify other formulae that may be subject to this issue, the following may be used: ~~~ grep -rnI 'ENV\.cc.*test\.c' Library/Formula \ | grep -v '\-L#{lib}' ~~~ Closes #35806. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/tinyxml.rb')
-rw-r--r--Library/Formula/tinyxml.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Formula/tinyxml.rb b/Library/Formula/tinyxml.rb
index 361347693..813f6d8a0 100644
--- a/Library/Formula/tinyxml.rb
+++ b/Library/Formula/tinyxml.rb
@@ -71,7 +71,7 @@ class Tinyxml < Formula
return 0;
}
EOS
- system ENV.cxx, "test.cpp", "-ltinyxml", "-o", "test"
+ system ENV.cxx, "test.cpp", "-L#{lib}", "-ltinyxml", "-o", "test"
system "./test"
end
end