use rpath only on posix platforms
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Tue, 29 Aug 2006 18:27:42 +0200
changeset 19 bc4690ec2cbb
parent 18 a579c71fdb2a
child 20 19c395336b0d
child 23 b301a369b843
use rpath only on posix platforms
SConstruct
--- a/SConstruct	Tue Aug 29 18:23:19 2006 +0200
+++ b/SConstruct	Tue Aug 29 18:27:42 2006 +0200
@@ -219,8 +219,13 @@
 
 			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)