yaws: simplify arch flag manipulation

This commit is contained in:
Jack Nagel 2014-09-25 15:27:02 -05:00
parent 24d906d9f5
commit 42821878be

View file

@ -21,10 +21,7 @@ class Yaws < Formula
def install
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
system "autoreconf", "-fvi"