This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

GDAL: Reset ARCHFLAGS in case they've been set outside

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information...
1 parent 63b2a05 commit f5c403d9a55b175b374da67506c756b53b43c3f9 @jezdez jezdez committed with adamv Feb 20, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 Library/Formula/gdal.rb
View
@@ -198,6 +198,13 @@ def install
# 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"

0 comments on commit f5c403d

Please sign in to comment.