Message92354
Basically yes, two minor ones:
*) also look for 'g++',
*) string.find() returns the index where found, -1 when not found,
so:
{{{
...
elif sys.platform[:5] == "hp-ux":
if compiler.find('gcc') >= 0 or compiler.find('g++') >= 0:
return ["-Wl,+s", "-L" + dir]
return ["+s", "-L" + dir]
...
}}}
Two lines below already is another search for 'gcc' or 'g++', which also
should be changed from 'compiler[:3]' to 'compiler.find()':
{{{
...
elif compiler.find("gcc") >= 0 or compiler.find("g++") >= 0:
return "-Wl,-R" + dir
...
}}}
Thank you! |
|
Date |
User |
Action |
Args |
2009-09-07 09:16:51 | haubi | set | recipients:
+ haubi, tarek, trentm, srid |
2009-09-07 09:16:51 | haubi | set | messageid: <1252315011.3.0.683886597254.issue6163@psf.upfronthosting.co.za> |
2009-09-07 09:16:49 | haubi | link | issue6163 messages |
2009-09-07 09:16:49 | haubi | create | |
|