$ brew install liblwgeom
$ export LDFLAGS="-L/usr/local/opt/liblwgeom/lib"
$ export CPPFLAGS="-I/usr/local/opt/liblwgeom/include"
$ brew edit libspatialite
(add --enable-lwgeom to configure)
$ brew reinstall -s libspatialite
$ brew install -s gdal
          Created
          March 28, 2019 19:29 
        
      - 
      
- 
        Save openfirmware/26fa9ae413af626ed16d1dd09b614b42 to your computer and use it in GitHub Desktop. 
    ST_MakeValid and other functions on libspatialite/GDAL on MacOS with Homebrew
  
        
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
The
exportvariables didn't work for me. Had to add the following to thelibspatialitebrew recipe: