aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libspatialite.rb
diff options
context:
space:
mode:
authorDane Springmeyer2011-11-14 12:59:53 -0800
committerCharlie Sharpsteen2011-11-14 14:48:56 -0800
commit935d2dbf88c2d4dfac1559529f6a21ce5dbfd94e (patch)
treea01f33c078fd457e39a456fd72d4fa42a460d197 /Library/Formula/libspatialite.rb
parent27039c3a5e87bf01b1e3a5b1e8324674c265f142 (diff)
downloadhomebrew-935d2dbf88c2d4dfac1559529f6a21ce5dbfd94e.tar.bz2
SQLite: Use minimal optimization
-O3/-O2 leads to corrupt rtree indexes on 10.6/10.7 with both gcc and llvm-gcc. This issue also affects SpatiaLite. Closes #8584. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
Diffstat (limited to 'Library/Formula/libspatialite.rb')
-rw-r--r--Library/Formula/libspatialite.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Formula/libspatialite.rb b/Library/Formula/libspatialite.rb
index f5f38842f..1193a6d8a 100644
--- a/Library/Formula/libspatialite.rb
+++ b/Library/Formula/libspatialite.rb
@@ -10,6 +10,9 @@ class Libspatialite < Formula
depends_on 'geos'
def install
+ # O2 and O3 leads to corrupt/invalid rtree indexes
+ # http://groups.google.com/group/spatialite-users/browse_thread/thread/8e1cfa79f2d02a00#
+ ENV.Os
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",