Adjust LD_LIBRARY_PATH for FreeBSD also; fallback to adjusting LD_LIBRARY_PATH when we don't know any better.

This commit is contained in:
Gustavo J. A. M. Carneiro
2008-09-04 18:30:38 +01:00
parent 9d1d6b890e
commit fd7fc3f80e

View File

@@ -523,10 +523,13 @@ def _get_proc_env(os_env=None):
pathvar = 'PATH'
elif sys.platform == 'cygwin':
pathvar = 'PATH'
elif sys.platform.startswith('freebsd'):
pathvar = 'LD_LIBRARY_PATH'
else:
Params.warning(("Don't know how to configure "
"dynamic library path for the platform '%s'") % (sys.platform,))
pathvar = None
"dynamic library path for the platform %r;"
" assuming it's LD_LIBRARY_PATH.") % (sys.platform,))
pathvar = 'LD_LIBRARY_PATH'
proc_env = dict(os.environ)
if os_env is not None: