summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/gdal/package.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/gdal/package.py b/var/spack/repos/builtin/packages/gdal/package.py
index dbc32145a2..22c61864ff 100644
--- a/var/spack/repos/builtin/packages/gdal/package.py
+++ b/var/spack/repos/builtin/packages/gdal/package.py
@@ -6,6 +6,8 @@
import os
import sys
+from spack.util.environment import filter_system_paths
+
class Gdal(AutotoolsPackage):
"""GDAL (Geospatial Data Abstraction Library) is a translator library for
@@ -223,7 +225,7 @@ class Gdal(AutotoolsPackage):
libs = []
for dep in self.spec.dependencies(deptype='link'):
query = self.spec[dep.name]
- libs.extend(query.libs.directories)
+ libs.extend(filter_system_paths(query.libs.directories))
if sys.platform == 'darwin':
env.prepend_path('DYLD_FALLBACK_LIBRARY_PATH', ':'.join(libs))
else: