summaryrefslogtreecommitdiff
path: root/source4/selftest
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-25 14:20:45 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:27:06 +1000
commit6c3b69be9bdfc29ad0c0fa2c028fad0be193e042 (patch)
tree72aed80dae19adb8af68bf399c635f98157b213d /source4/selftest
parent12e6a920a79c04779cd188e8e88b16625d273c8f (diff)
downloadsamba-6c3b69be9bdfc29ad0c0fa2c028fad0be193e042.tar.gz
samba-6c3b69be9bdfc29ad0c0fa2c028fad0be193e042.tar.bz2
samba-6c3b69be9bdfc29ad0c0fa2c028fad0be193e042.zip
build: honor existing LD_LIBRARY_PATH settings when adding shared lib paths
Diffstat (limited to 'source4/selftest')
-rw-r--r--source4/selftest/wscript4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/selftest/wscript b/source4/selftest/wscript
index 31a64cfe11..6c48b8f65b 100644
--- a/source4/selftest/wscript
+++ b/source4/selftest/wscript
@@ -1,7 +1,7 @@
# selftest main code.
import Scripting, os, Options, Utils, Environment, optparse, sys
-from samba_utils import RUN_COMMAND
+from samba_utils import RUN_COMMAND, ADD_LD_LIBRARY_PATH
def set_options(opt):
opt.ADD_COMMAND('test', cmd_test)
@@ -73,7 +73,7 @@ def cmd_testonly(opt):
env.SELFTEST_PREFIX = Options.options.SELFTEST_PREFIX
# this is needed for systems without rpath, or with rpath disabled
- os.environ['LD_LIBRARY_PATH'] = 'bin/shared'
+ ADD_LD_LIBRARY_PATH('bin/shared')
st_done = os.path.join(env.SELFTEST_PREFIX, 'st_done')
if os.path.exists(st_done):