GDAL: don't add system paths to env vars (#30229)
This commit is contained in:
parent
4c0cc5a295
commit
f37e07a882
@ -6,6 +6,8 @@
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
from spack.util.environment import filter_system_paths
|
||||||
|
|
||||||
|
|
||||||
class Gdal(AutotoolsPackage):
|
class Gdal(AutotoolsPackage):
|
||||||
"""GDAL (Geospatial Data Abstraction Library) is a translator library for
|
"""GDAL (Geospatial Data Abstraction Library) is a translator library for
|
||||||
@ -223,7 +225,7 @@ def setup_run_environment(self, env):
|
|||||||
libs = []
|
libs = []
|
||||||
for dep in self.spec.dependencies(deptype='link'):
|
for dep in self.spec.dependencies(deptype='link'):
|
||||||
query = self.spec[dep.name]
|
query = self.spec[dep.name]
|
||||||
libs.extend(query.libs.directories)
|
libs.extend(filter_system_paths(query.libs.directories))
|
||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
env.prepend_path('DYLD_FALLBACK_LIBRARY_PATH', ':'.join(libs))
|
env.prepend_path('DYLD_FALLBACK_LIBRARY_PATH', ':'.join(libs))
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user