Michael Haubenwallner <michael.haubenwall...@salomon.at> added the comment:

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!

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue6163>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to