Staging
v0.5.1
https://github.com/python/cpython
Revision 66efbc74811f153a02728942adbbfc549bf10398 authored by Ka-Ping Yee on 01 March 2001, 13:55:20 UTC, committed by Ka-Ping Yee on 01 March 2001, 13:55:20 UTC
Add checks for .pyo and .pyd.
Collapse docfunction, docmethod, docbuiltin into the one method docroutine.
Small formatting fixes.
Link the segments of a package path in the title.
Link to the source file only if it exists.
Allow modules (e.g. repr.py) to take precedence over built-ins (e.g. repr()).
Add interruptible synopsis scanner (so we can do searches in the background).
Make HTTP server quit.
Add small GUI for controlling the server and launching searches (like -k).
    (Tested on Win2k, Win98, and Linux.)
1 parent dbe6ebb
Raw File
Tip revision: 66efbc74811f153a02728942adbbfc549bf10398 authored by Ka-Ping Yee on 01 March 2001, 13:55:20 UTC
Docstring improvements.
Tip revision: 66efbc7
HPUX-NOTES
Subject: Dynamic Linking under HP-UX
From: "C. Derek Fields" <derek@gamekeeper.bellcore.com>
Date: Thu, 08 Sep 94 14:14:07 -0400

There are two important points.  First, the python executable must be
linked with the -E option to explicitly export all symbols.  This
works with the vanilla interpreter, but I am not sure how friendly it
will be when I try to embed the interpreter in a larger application.
It may be necessary to hand tune the exports using the -e option.
Anyway, the additional flag to $(CC) is "-Wl,-E", which passes the -E
flag to the compiler.  My link line (from an actual run) looks like
this:

cc config.o -Wl,-E libModules.a  ../Python/libPython.a  ../Objects/libObjects.a ../Parser/libParser.a   -lm  -ldld -o python

[Guido's note: as of Python 1.5, replace the four libraries with
../libpython$(VERSION).a]

Second, the dynamic module must be compiled with the +z option to make
it position independent and then linked into a shared library:

ld -b -o <modName>module.sl <object list>

The -b tells the linker to produce a shared library.
back to top