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/gdal.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/gdal.rb')
| -rw-r--r-- | Library/Formula/gdal.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Formula/gdal.rb b/Library/Formula/gdal.rb index dce213eea..1f0362b52 100644 --- a/Library/Formula/gdal.rb +++ b/Library/Formula/gdal.rb @@ -210,10 +210,12 @@ class Gdal < Formula def install # Linking flags for SQLite are not added at a critical moment when the GDAL # library is being assembled. This causes the build to fail due to missing - # symbols. + # symbols. Also, ensure Homebrew SQLite is used so that Spatialite is + # functional. # # Fortunately, this can be remedied using LDFLAGS. - ENV.append 'LDFLAGS', '-lsqlite3' + sqlite = Formula.factory 'sqlite' + ENV.append 'LDFLAGS', "-L#{sqlite.opt_prefix}/lib -lsqlite3" # Needed by libdap. ENV.append 'CPPFLAGS', '-I/usr/include/libxml2' if complete? |
