diff --git a/SConstruct b/SConstruct index 96ce62ae0..32a04de7d 100644 --- a/SConstruct +++ b/SConstruct @@ -219,8 +219,13 @@ class Ns3: filename = self.get_mod_output (module, variant) if module.executable: - module_builder = env.Program (target = filename, source = objects, - LIBPATH=lib_path, LIBS=libs, RPATH=lib_path) + if env['PLATFORM'] == 'posix': + module_builder = env.Program (target = filename, source = objects, + LIBPATH=lib_path, LIBS=libs, + RPATH=lib_path) + else: + module_builder = env.Program (target = filename, source = objects, + LIBPATH=lib_path, LIBS=libs) else: if variant.static: module_builder = env.StaticLibrary (target = filename, source = objects)