diff options
| author | Steven Peters | 2015-01-12 23:21:18 -0800 |
|---|---|---|
| committer | Jack Nagel | 2015-01-17 22:58:56 -0600 |
| commit | 991b6b702edd332587e644a91cdbc7865d25cdf6 (patch) | |
| tree | 5077c7180ef918238ad84af3538341317f0b8ae9 /Library/Formula/libtiff.rb | |
| parent | 9ef258aa6dc6106cb3016d1d096dc5509e337f60 (diff) | |
| download | homebrew-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/libtiff.rb')
| -rw-r--r-- | Library/Formula/libtiff.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Formula/libtiff.rb b/Library/Formula/libtiff.rb index bbd9fc506..611bdb755 100644 --- a/Library/Formula/libtiff.rb +++ b/Library/Formula/libtiff.rb @@ -42,7 +42,7 @@ class Libtiff < Formula return 0; } EOS - system ENV.cc, "test.c", "-ltiff", "-o", "test" + system ENV.cc, "test.c", "-L#{lib}", "-ltiff", "-o", "test" system "./test", "test.tif" assert_match /ImageWidth.*10/, shell_output("#{bin}/tiffdump test.tif") end |
