diff --git a/src/wscript b/src/wscript index 614dccbae..45d10365f 100644 --- a/src/wscript +++ b/src/wscript @@ -1,5 +1,7 @@ ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- +import os +import sys import Params all_modules = [ @@ -37,7 +39,10 @@ def build(bld): if not env['DISABLE_RPATH']: for module in all_modules: node = bld.m_curdirnode.find_dir(module) - env.append_value('RPATH', '-Wl,--rpath=%s' % (node.abspath(env),)) + if sys.platform == 'win32': + os.environ["PATH"] = ';'.join([os.environ["PATH"], node.abspath(env)]) + else: + env.append_value('RPATH', '-Wl,--rpath=%s' % (node.abspath(env),)) bld.add_subdirs(all_modules)