manually inherit DYLD_LIBRARY_PATH - closes #3138
This commit is contained in:
parent
1455c6be1f
commit
9df548670c
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue