manually inherit DYLD_LIBRARY_PATH - closes #3138

This commit is contained in:
Dane Springmeyer 2015-10-20 17:22:52 -07:00
parent 1455c6be1f
commit 9df548670c

View file

@ -52,7 +52,12 @@ mapnik::feature_ptr fetch_first_feature(std::string const& filename, bool cache_
int create_disk_index(std::string const& filename, bool silent)
{
std::string cmd = "mapnik-index " + filename;
std::string cmd;
if (std::getenv("DYLD_LIBRARY_PATH") != nullptr)
{
cmd += std::string("export DYLD_LIBRARY_PATH=") + std::getenv("DYLD_LIBRARY_PATH") + " && ";
}
cmd += "mapnik-index " + filename;
if (silent)
{
#ifndef _WINDOWS