ejabberd: simplify arch flag manipulation

This commit is contained in:
Jack Nagel 2014-09-25 15:27:01 -05:00
parent 7970f39573
commit 29f86e63a2

View file

@ -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}",