aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2012-08-17 11:17:52 -0500
committerJack Nagel2012-08-17 11:23:00 -0500
commit844f8cdd88588b0a675bb327c2efd96363778029 (patch)
treed634bd2ae5b0198e5f30fd7d1c7e03e3e9a14107 /Library/Formula
parent55c854cb33c7fbafb82a621cc6e03e183740816a (diff)
downloadhomebrew-844f8cdd88588b0a675bb327c2efd96363778029.tar.bz2
mariadb: build without exotic optimization flags
Currently we patch mysql_config to sanitize the CFLAGS that are exported to software that queries it during builds, such as the mysql gem. Since there isn't any way to control what compiler is used by Ruby/gem to build native extensions, we must remove any compiler or CPU specific flags. Instead, let's build without these flags to begin with, which will keep mysql_config clean and provide consistency between the flags used to build mariadb and those used to build software that links to it. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mariadb.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Formula/mariadb.rb b/Library/Formula/mariadb.rb
index 00b7a2bb9..2e72e0c84 100644
--- a/Library/Formula/mariadb.rb
+++ b/Library/Formula/mariadb.rb
@@ -22,6 +22,10 @@ class Mariadb < Formula
end
def install
+ # Build without compiler or CPU specific optimization flags to facilitate
+ # compilation of gems and other software that queries `mysql-config`.
+ ENV.minimal_optimization
+
ENV.append 'CXXFLAGS', '-fno-omit-frame-pointer -felide-constructors'
# Make universal for bindings to universal applications