diff options
| author | Nibbles 2bits | 2011-09-21 17:56:05 -0700 |
|---|---|---|
| committer | Charlie Sharpsteen | 2011-09-23 16:58:41 -0700 |
| commit | f026f270d28cfa94c33cf1c303352a4d86d01ce9 (patch) | |
| tree | 0c0acdbfe881fc75ba8825d82bbf8b163a5ac106 /Library/Formula/libiconv.rb | |
| parent | 507722b144fda25a10bd2e080d48c436e2aaaab8 (diff) | |
| download | homebrew-f026f270d28cfa94c33cf1c303352a4d86d01ce9.tar.bz2 | |
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 #7748.
Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
Diffstat (limited to 'Library/Formula/libiconv.rb')
| -rw-r--r-- | Library/Formula/libiconv.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Formula/libiconv.rb b/Library/Formula/libiconv.rb index 70cbf6cad..aca06415a 100644 --- a/Library/Formula/libiconv.rb +++ b/Library/Formula/libiconv.rb @@ -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}", |
