From 634602d2267f5ff516a97a7a74bafe8c72bd925f Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 28 Dec 2011 17:16:57 -0600 Subject: 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 --- Library/Formula/git.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'Library/Formula/git.rb') 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 -- cgit v1.2.3