MySQL: allow compilation with Xcode-only setups

Closes Homebrew/homebrew#20185.
master
Adam Vandenberg 2013-06-08 09:02:17 -07:00
parent 9468904f52
commit aadcad99aa
1 changed files with 6 additions and 0 deletions

View File

@ -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