Skip to content

Commit

Permalink
v8: fix up libv8.dylib install_name
Browse files Browse the repository at this point in the history
  • Loading branch information
tdsmith committed Feb 7, 2015
1 parent 741166a commit 17ead52
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Library/Formula/v8.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ class V8 < Formula
end

def install
# fix up libv8.dylib install_name
# https://github.com/Homebrew/homebrew/issues/36571
# https://code.google.com/p/v8/issues/detail?id=3871
inreplace "tools/gyp/v8.gyp",
"'OTHER_LDFLAGS': ['-dynamiclib', '-all_load']",
"\\0, 'DYLIB_INSTALL_NAME_BASE': '#{opt_lib}'"

# Download gyp ourselves because running "make dependencies" pulls in ICU.
(buildpath/'build/gyp').install resource('gyp')

Expand Down

0 comments on commit 17ead52

Please sign in to comment.