Skip to content

Commit

Permalink
Adjusted LD build flag to point to /usr/bin/ld
Browse files Browse the repository at this point in the history
Without this, brew attempts to use /usr/bin/cc as the linker.
  • Loading branch information
Adam Rudd committed Aug 21, 2012
1 parent aaaad33 commit c7f661f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Library/Homebrew/extend/ENV.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def setup_build_environment
if SystemCommand.platform == :linux
self['CC'] = '/usr/bin/cc'
self['CXX'] = '/usr/bin/c++'
self['LD'] = '/usr/bin/ld'
cflags = ['-O3']
else
# Os is the default Apple uses for all its stuff so let's trust them
Expand All @@ -45,7 +46,7 @@ def setup_build_environment
# to use a specific linker. However doing this in general causes formula to
# build more successfully because we are changing CC and many build systems
# don't react properly to that.
self['LD'] = self['CC']
self['LD'] ||= self['CC']
end

def deparallelize
Expand Down

0 comments on commit c7f661f

Please sign in to comment.