From 17ead526270a3ebc0a64fa67d43acbb524bb7634 Mon Sep 17 00:00:00 2001 From: Tim D. Smith Date: Thu, 5 Feb 2015 19:54:57 -0800 Subject: v8: fix up libv8.dylib install_name Fixes #36571. --- Library/Formula/v8.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Library/Formula') diff --git a/Library/Formula/v8.rb b/Library/Formula/v8.rb index b682aa349..15c2d959e 100644 --- a/Library/Formula/v8.rb +++ b/Library/Formula/v8.rb @@ -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') -- cgit v1.2.3