From 991b6b702edd332587e644a91cdbc7865d25cdf6 Mon Sep 17 00:00:00 2001 From: Steven Peters Date: Mon, 12 Jan 2015 23:21:18 -0800 Subject: 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 --- Library/Formula/tinyxml2.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Formula/tinyxml2.rb') diff --git a/Library/Formula/tinyxml2.rb b/Library/Formula/tinyxml2.rb index 0d789945b..f4b04311b 100644 --- a/Library/Formula/tinyxml2.rb +++ b/Library/Formula/tinyxml2.rb @@ -28,7 +28,7 @@ class Tinyxml2 < Formula return 0; } EOS - system ENV.cc, "test.cpp", "-ltinyxml2", "-o", "test" + system ENV.cc, "test.cpp", "-L#{lib}", "-ltinyxml2", "-o", "test" system "./test" end end -- cgit v1.2.3