added CGO_ENABLED=0 build instructions
@@ -226,7 +226,7 @@ The following build flags can be used to turn off certain features of tegola:
- `noS3Cache` - turn off the AWS S3 cache back end
- `noRedisCache` - turn off the Redis cache back end
- `noPostgisProvider` - turn off the PostGIS data provider
-- `noGpkgProvider` - turn off the GeoPackage data provider. GeoPackage uses CGO and can also be turned off using the environment variable `CGO_ENABLED=0`
+- `noGpkgProvider` - turn off the GeoPackage data provider. Note, GeoPackage uses CGO and will be turned off if the environment variable `CGO_ENABLED=0` is set prior to building.
Example of using the build flags to turn of the Redis cache back end and the GeoPackage provider
@@ -235,5 +235,13 @@ go build -tags 'noRedisCache noGpkgProvider'
```
+**Turning off CGO**
+Tegola uses CGO for certain functionality (i.e. GeoPackge support). To build tegola without CGO use the following command:
+
+```bash
+CGO_ENABLED go build
+```
+
+
## License
See [license](LICENSE.md) file in repo.
