summaryrefslogtreecommitdiffstats
path: root/test/SHCCFLAGS.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/SHCCFLAGS.py')
-rw-r--r--test/SHCCFLAGS.py7
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)