[issue6163] [HP-UX] ld: Unrecognized argument: +s -L<dir>

Michael Haubenwallner report at bugs.python.org
Mon Sep 7 11:16:51 CEST 2009


Michael Haubenwallner <michael.haubenwallner at 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 <report at bugs.python.org>
<http://bugs.python.org/issue6163>
_______________________________________


More information about the Python-bugs-list mailing list