aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/mariadb.rb7
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'