From b8cc8d4ec0d8760689af6f8bb1a95192efb95aac Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 25 Sep 2014 15:27:01 -0500 Subject: ejabberd: simplify arch flag manipulation --- Library/Formula/ejabberd.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/ejabberd.rb b/Library/Formula/ejabberd.rb index a3b501de5..4c553ad9a 100644 --- a/Library/Formula/ejabberd.rb +++ b/Library/Formula/ejabberd.rb @@ -30,10 +30,7 @@ class Ejabberd < Formula ENV["HOMEBREW_ARCHFLAGS"] = " " if build.build_32_bit? - %w{ CFLAGS LDFLAGS }.each do |compiler_flag| - ENV.remove compiler_flag, "-arch #{Hardware::CPU.arch_64_bit}" - ENV.append compiler_flag, "-arch #{Hardware::CPU.arch_32_bit}" - end + ENV.append %w{CFLAGS LDFLAGS}, "-arch #{Hardware::CPU.arch_32_bit}" end args = ["--prefix=#{prefix}", -- cgit v1.2.3