diff options
| author | Jannis Leidel | 2012-02-20 18:45:42 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2012-04-16 20:36:12 -0700 |
| commit | f5c403d9a55b175b374da67506c756b53b43c3f9 (patch) | |
| tree | db0f3dffe34c42d72d332cb108f7706a5c0aaa80 /Library | |
| parent | 63b2a05d805e4e04d02870d4451b1210c037ceb7 (diff) | |
| download | homebrew-f5c403d9a55b175b374da67506c756b53b43c3f9.tar.bz2 | |
GDAL: Reset ARCHFLAGS in case they've been set outside
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/gdal.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Formula/gdal.rb b/Library/Formula/gdal.rb index 44d60f246..e4bdee39a 100644 --- a/Library/Formula/gdal.rb +++ b/Library/Formula/gdal.rb @@ -198,6 +198,13 @@ class Gdal < Formula # Fortunately, this can be remedied using LDFLAGS. ENV.append 'LDFLAGS', '-lsqlite3' + # Reset ARCHFLAGS to match how we build. + if MacOS.prefer_64_bit? + ENV['ARCHFLAGS'] = "-arch x86_64" + else + ENV['ARCHFLAGS'] = "-arch i386" + end + system "./configure", "--prefix=#{prefix}", *get_configure_args system "make" system "make install" |
