[Distutils] Patch for unixccompiler.py to support HP-UX + gcc
M.-A. Lemburg
mal@lemburg.com
Mon May 19 12:45:02 2003
Harri Pasanen wrote:
> Hello,
>
> gcc on hp-ux uses the native linker, so if gcc is used there, the
> normal gcc flags do not apply.
>
> I propose the following patch to unixccompiler.py
Please upload patches to SourceForge. That way, they don't get
lost. Thanks.
> ----8<------------8<-----------------8<------------8<-----------------8<-------
> 206,207c206,209
> < elif compiler[:3] == "gcc" or compiler[:3] == "g++":
> < return "-Wl,-R" + dir
> ---
>
>> elif sys.platform[:5] == "hp-ux":
>> return "+s -L" + dir
>> elif compiler[:3] == "gcc" or compiler[:3] == "g++":
>> return "-Wl,-R" + dir
>
> ----8<------------8<-----------------8<------------8<-----------------8<-------
>
>
> That also adds +s, which means that SHLIB_PATH is honored (the same as
> LD_LIBRARY_PATH on Linux/Solaris).
>
> Regards,
>
> Harri
>
> _______________________________________________
> Distutils-SIG maillist - Distutils-SIG@python.org
> http://mail.python.org/mailman/listinfo/distutils-sig
--
Marc-Andre Lemburg
eGenix.com
Professional Python Software directly from the Source (#1, May 19 2003)
>>> Python/Zope Products & Consulting ... http://www.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
________________________________________________________________________
EuroPython 2003, Charleroi, Belgium: 36 days left