diff options
| author | Jack Nagel | 2011-12-28 17:16:57 -0600 |
|---|---|---|
| committer | Jack Nagel | 2011-12-28 17:16:57 -0600 |
| commit | 634602d2267f5ff516a97a7a74bafe8c72bd925f (patch) | |
| tree | 9ccd62481e70fb9e527c13cb7fd1885acc2aaa0f /Library/Formula/git.rb | |
| parent | f1f89ce92ef722bb3c8820ec2487abd1c931eef9 (diff) | |
| download | homebrew-634602d2267f5ff516a97a7a74bafe8c72bd925f.tar.bz2 | |
git: define NO_R_TO_GCC_LINKER
Inadvertently failing to pass the correct library paths to the linker
can cause a build to link against an incorrect version of a library.
Some compilers don't pass the runtime path defined with '-Rpath' to the
linker. With this defined, paths will be passed to the linker with
-Wl,rpath, rather than -R.
Apple's gcc-4.0, gcc-4.2, and llvm-gcc do not complain about -R, but it
is not documented as far as I can tell, and clang complains vocally
about it. As long as they all support the -Wl format, we may as well be
safe.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/git.rb')
| -rw-r--r-- | Library/Formula/git.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Formula/git.rb b/Library/Formula/git.rb index 1b116b1e8..42ac5a052 100644 --- a/Library/Formula/git.rb +++ b/Library/Formula/git.rb @@ -29,6 +29,7 @@ class Git < Formula ENV['NO_FINK']='1' ENV['NO_DARWIN_PORTS']='1' ENV['V']='1' # build verbosely + ENV['NO_R_TO_GCC_LINKER']='1' # pass arguments to LD correctly # workaround for users of perlbrew ENV['PERL_PATH'] = `/usr/bin/which perl`.chomp |
