libiconv: Add option to build universal

libiconv is listed inside the glib formula as a dep, and glib has
a universal option.  This does not.  Therefore, glib --universal
will fail to link.  This commit gives the user the option to build
libiconv as a universal library.  It compiled successfully on 64bit
OSX 10.6.8 using all three XCode 4.0.2 compilers.

Closes Homebrew/homebrew#7748.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
This commit is contained in:
Nibbles 2bits 2011-09-21 17:56:05 -07:00 committed by Charlie Sharpsteen
parent 639c4f4829
commit 43928f72e7

View file

@ -18,7 +18,12 @@ class Libiconv < Formula
]}
end
def options
[[ '--universal', 'Build a universal library.' ]]
end
def install
ENV.universal_binary if ARGV.build_universal?
ENV.j1
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",