From fd7fc3f80ece885477e01e223d1a076a07732379 Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Thu, 4 Sep 2008 18:30:38 +0100 Subject: [PATCH] Adjust LD_LIBRARY_PATH for FreeBSD also; fallback to adjusting LD_LIBRARY_PATH when we don't know any better. --- wscript | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wscript b/wscript index 5f6c0657c..eb8ae49ca 100644 --- a/wscript +++ b/wscript @@ -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: