aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/mysql.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Formula/mysql.rb b/Library/Formula/mysql.rb
index 7774c4632..a58bf96ad 100644
--- a/Library/Formula/mysql.rb
+++ b/Library/Formula/mysql.rb
@@ -42,6 +42,12 @@ class Mysql < Formula
end
def install
+ # Don't hard-code the libtool path. See:
+ # https://github.com/mxcl/homebrew/issues/20185
+ inreplace "cmake/libutils.cmake",
+ "COMMAND /usr/bin/libtool -static -o ${TARGET_LOCATION}",
+ "COMMAND libtool -static -o ${TARGET_LOCATION}"
+
# Build without compiler or CPU specific optimization flags to facilitate
# compilation of gems and other software that queries `mysql-config`.
ENV.minimal_optimization