use rpath only on posix platforms
This commit is contained in:
@@ -219,8 +219,13 @@ class Ns3:
|
||||
|
||||
filename = self.get_mod_output (module, variant)
|
||||
if module.executable:
|
||||
if env['PLATFORM'] == 'posix':
|
||||
module_builder = env.Program (target = filename, source = objects,
|
||||
LIBPATH=lib_path, LIBS=libs, RPATH=lib_path)
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user