mysql - add --enable-local-infile option
Homebrew used this by default in 5.1, but it is a security risk so make it an option instead. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
2e040a1194
commit
3369fc9c2b
1 changed files with 5 additions and 1 deletions
|
@ -14,7 +14,8 @@ class Mysql < Formula
|
|||
[
|
||||
['--with-tests', "Build with unit tests."],
|
||||
['--with-embedded', "Build the embedded server."],
|
||||
['--universal', "Make mysql a universal binary"]
|
||||
['--universal', "Make mysql a universal binary"],
|
||||
['--enable-local-infile', "Build with local infile loading support"]
|
||||
]
|
||||
end
|
||||
|
||||
|
@ -40,6 +41,9 @@ class Mysql < Formula
|
|||
# Make universal for bindings to universal applications
|
||||
args << "-DCMAKE_OSX_ARCHITECTURES='ppc;i386'" if ARGV.include? '--universal'
|
||||
|
||||
# Build with local infile loading support
|
||||
args << "-DENABLED_LOCAL_INFILE=1" if ARGV.include? '--enable-local-infile'
|
||||
|
||||
system "cmake", *args
|
||||
system "make"
|
||||
system "make install"
|
||||
|
|
Loading…
Reference in a new issue