From 6730e873fa5928585ad4e7e63e2b242e7e68bcb9 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 9 May 2014 20:49:36 -0500 Subject: mariadb: build universal under superenv --- Library/Formula/mariadb.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Library/Formula') 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' -- cgit v1.2.3