diff options
| author | Charlie Sharpsteen | 2012-11-11 12:30:45 -0800 |
|---|---|---|
| committer | Charlie Sharpsteen | 2012-11-11 12:47:44 -0800 |
| commit | 4a68f0ba2e3ed329664bfeda92fa7bc9c056d102 (patch) | |
| tree | 8da11b6fe363ddfffd559fd78e5071b120183e9a /Library/Formula/spatialite-tools.rb | |
| parent | 001f352ad56de497cc33a938aa8f31cda12e9204 (diff) | |
| download | homebrew-4a68f0ba2e3ed329664bfeda92fa7bc9c056d102.tar.bz2 | |
Clean up lib path searching for Spatialite
Anything linking against SpatiaLite also needs to use Homebrew's SQLite so that
loadable extensions are enabled along with RTree indices.
This commit cleans up several formulae to use the specific `opt/sqlite/lib`
prefix rather than `HOMEBREW_PREFIX/lib` and also adds this searching to
`gdal`.
However, this hack is getting a little large. The best fix would probably be to
flag SQLite as `keg_only` so that lib path munging is handled automagically for
everything with a dependency tree that includes SQLite.
Diffstat (limited to 'Library/Formula/spatialite-tools.rb')
| -rw-r--r-- | Library/Formula/spatialite-tools.rb | 3 |
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}" |
