diff options
author | Steven Knight <knight@baldmt.com> | 2003-04-26 13:02:02 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-04-26 13:02:02 (GMT) |
commit | a925fbfbbecd978b6275ba0592e3bd21b0bd7781 (patch) | |
tree | 292853eb221ebe82c9e9b47c03c74b78a155add0 /test/SHCCFLAGS.py | |
parent | dbb26a739bda888c1b7e206dbf6753ebadc68ebc (diff) | |
download | SCons-a925fbfbbecd978b6275ba0592e3bd21b0bd7781.zip SCons-a925fbfbbecd978b6275ba0592e3bd21b0bd7781.tar.gz SCons-a925fbfbbecd978b6275ba0592e3bd21b0bd7781.tar.bz2 |
Portability fixes for test. (Chad Austin)
Diffstat (limited to 'test/SHCCFLAGS.py')
-rw-r--r-- | test/SHCCFLAGS.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/SHCCFLAGS.py b/test/SHCCFLAGS.py index 2ba45b3..610fcd1 100644 --- a/test/SHCCFLAGS.py +++ b/test/SHCCFLAGS.py @@ -27,6 +27,7 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" import sys import TestSCons import os +import string if sys.platform == 'win32': fooflags = '/nologo -DFOO' @@ -35,10 +36,12 @@ else: fooflags = '-DFOO' barflags = '-DBAR' +test = TestSCons.TestSCons() + if os.name == 'posix': os.environ['LD_LIBRARY_PATH'] = '.' - -test = TestSCons.TestSCons() +if string.find(sys.platform, 'irix') > -1: + os.environ['LD_LIBRARYN32_PATH'] = '.' test.write('SConstruct', """ foo = Environment(SHCCFLAGS = '%s', WIN32_INSERT_DEF=1) |