aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/mysql.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/Library/Formula/mysql.rb b/Library/Formula/mysql.rb
index f2ec76ef0..41498dd59 100644
--- a/Library/Formula/mysql.rb
+++ b/Library/Formula/mysql.rb
@@ -31,6 +31,7 @@ class Mysql < Formula
# Remove optimization flags from `mysql_config --cflags`
# This facilitates easy compilation of gems using a brewed mysql
+ # Also fix compilation with Xcode and no CLT.
def patches; DATA; end
def install
@@ -178,3 +179,16 @@ index 9296075..70c18db 100644
do
# The first option we might strip will always have a space before it because
# we set -I$pkgincludedir as the first option
+diff --git a/cmake/libutils.cmake b/cmake/libutils.cmake
+index 89a9de9..677c68d 100644
+--- a/cmake/libutils.cmake
++++ b/cmake/libutils.cmake
+@@ -183,7 +183,7 @@ MACRO(MERGE_STATIC_LIBS TARGET OUTPUT_NAME LIBS_TO_MERGE)
+ # binaries properly)
+ ADD_CUSTOM_COMMAND(TARGET ${TARGET} POST_BUILD
+ COMMAND rm ${TARGET_LOCATION}
+- COMMAND /usr/bin/libtool -static -o ${TARGET_LOCATION}
++ COMMAND libtool -static -o ${TARGET_LOCATION}
+ ${STATIC_LIBS}
+ )
+ ELSE()