Add a universal flag for building mysql

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Chris Hoffman 2010-06-17 09:22:38 -05:00 committed by Adam Vandenberg
parent cb1d352abe
commit c7bc18e180

View file

@ -12,6 +12,7 @@ class Mysql <Formula
['--with-tests', "Keep tests when installing."],
['--with-bench', "Keep benchmark app when installing."],
['--client-only', "Only install client tools, not the server."],
['--universal', "Make mysql a universal binary"]
]
end
@ -27,6 +28,9 @@ class Mysql <Formula
ENV['CXXFLAGS'] = ENV['CXXFLAGS'].gsub "-fomit-frame-pointer", ""
ENV['CXXFLAGS'] += " -fno-omit-frame-pointer -felide-constructors"
# Make universal for bindings to universal applications
ENV.universal_binary if ARGV.include? '--universal'
configure_args = [
"--without-docs",
"--without-debug",