diff options
| author | Jack Nagel | 2014-05-09 20:49:36 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-05-09 20:49:36 -0500 |
| commit | 6730e873fa5928585ad4e7e63e2b242e7e68bcb9 (patch) | |
| tree | f159f60f7eb4d790bcb8be350c23b9a65b3c5a8d /Library/Formula/mariadb.rb | |
| parent | e271c21e4473a8a12ebadfc377123b8be5ddf783 (diff) | |
| download | homebrew-6730e873fa5928585ad4e7e63e2b242e7e68bcb9.tar.bz2 | |
mariadb: build universal under superenv
Diffstat (limited to 'Library/Formula/mariadb.rb')
| -rw-r--r-- | Library/Formula/mariadb.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Library/Formula/mariadb.rb b/Library/Formula/mariadb.rb index a8e026431..1a8bdfbea 100644 --- a/Library/Formula/mariadb.rb +++ b/Library/Formula/mariadb.rb @@ -28,8 +28,6 @@ class Mariadb < Formula conflicts_with 'mysql-connector-c', :because => 'both install MySQL client libraries' - env :std if build.universal? - def install # Don't hard-code the libtool path. See: # https://github.com/Homebrew/homebrew/issues/20185 @@ -79,7 +77,10 @@ class Mariadb < Formula args << "-DWITH_BLACKHOLE_STORAGE_ENGINE=1" if build.with? 'blackhole-storage-engine' # Make universal for binding to universal applications - args << "-DCMAKE_OSX_ARCHITECTURES='#{Hardware::CPU.universal_archs.as_cmake_arch_flags}'" if build.universal? + if build.universal? + ENV.universal_binary + args << "-DCMAKE_OSX_ARCHITECTURES=#{Hardware::CPU.universal_archs.as_cmake_arch_flags}" + end # Build with local infile loading support args << "-DENABLED_LOCAL_INFILE=1" if build.include? 'enable-local-infile' |
