use rpath only on posix platforms
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Tue Aug 29 18:27:42 2006 +0200 (2006-08-29)
changeset 19bc4690ec2cbb
parent 18 a579c71fdb2a
child 20 19c395336b0d
child 23 b301a369b843
use rpath only on posix platforms
SConstruct
     1.1 --- a/SConstruct	Tue Aug 29 18:23:19 2006 +0200
     1.2 +++ b/SConstruct	Tue Aug 29 18:27:42 2006 +0200
     1.3 @@ -219,8 +219,13 @@
     1.4  
     1.5  			filename = self.get_mod_output (module, variant)
     1.6  			if module.executable:
     1.7 -				module_builder = env.Program (target = filename, source = objects,
     1.8 -							      LIBPATH=lib_path, LIBS=libs, RPATH=lib_path)
     1.9 +				if env['PLATFORM'] == 'posix':
    1.10 +					module_builder = env.Program (target = filename, source = objects,
    1.11 +								      LIBPATH=lib_path, LIBS=libs, 
    1.12 +									RPATH=lib_path)
    1.13 +				else:
    1.14 +					module_builder = env.Program (target = filename, source = objects,
    1.15 +								      LIBPATH=lib_path, LIBS=libs)
    1.16  			else:
    1.17  				if variant.static:
    1.18  					module_builder = env.StaticLibrary (target = filename, source = objects)