aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/spatialite-tools.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/spatialite-tools.rb')
-rw-r--r--Library/Formula/spatialite-tools.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Formula/spatialite-tools.rb b/Library/Formula/spatialite-tools.rb
index db84228f7..960b57f08 100644
--- a/Library/Formula/spatialite-tools.rb
+++ b/Library/Formula/spatialite-tools.rb
@@ -19,7 +19,8 @@ class SpatialiteTools < Formula
# See: https://github.com/mxcl/homebrew/issues/3328
ENV.append 'LDFLAGS', '-liconv'
# Ensure Homebrew SQLite is found before system SQLite.
- ENV.append 'LDFLAGS', "-L#{HOMEBREW_PREFIX}/lib"
+ sqlite = Formula.factory 'sqlite'
+ ENV.append 'LDFLAGS', "-L#{sqlite.opt_prefix}/lib"
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"