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:
parent
639c4f4829
commit
43928f72e7
1 changed files with 5 additions and 0 deletions
|
@ -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}",
|
||||
|
|
Loading…
Reference in a new issue