From cc8b7c6f365b2e5982c2e5d720ba35899bc79a33 Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Sat, 10 Jan 2009 00:46:24 +0000 Subject: [PATCH] Append the NSC kernel dirs to LD_LIBRARY_PATH This allows the NSC NS-3 module to find the necessary NSC shared libraries. --- src/internet-stack/wscript | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/internet-stack/wscript b/src/internet-stack/wscript index 11030ca68..b13064ae0 100644 --- a/src/internet-stack/wscript +++ b/src/internet-stack/wscript @@ -98,6 +98,13 @@ def configure(conf): if not Options.options.with_nsc: nsc_fetch() + # append the NSC kernel dirs to the module path so that these dirs + # will end up in the LD_LIBRARY_PATH, thus allowing the NSC NS-3 + # module to find the necessary NSC shared libraries. + for nsc_module in ['linux-2.6.18', 'linux-2.6.26']: + conf.env.append_value('NS3_MODULE_PATH', + os.path.abspath(os.path.join(conf.env['WITH_NSC'], nsc_module))) + class NscBuildTask(Task.TaskBase):