summaryrefslogtreecommitdiffstats
path: root/Misc/HPUX-NOTES
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-09-14 14:06:46 (GMT)
committerGuido van Rossum <guido@python.org>1994-09-14 14:06:46 (GMT)
commit14421777fcb6164104a7aadf169c47e39c088c41 (patch)
treeb7badae4bc2971e4e25a305ae3b6c1605fbc6bff /Misc/HPUX-NOTES
parent14a6e3d5e8f91816f71e4bab976c61de3870a272 (diff)
downloadcpython-14421777fcb6164104a7aadf169c47e39c088c41.zip
cpython-14421777fcb6164104a7aadf169c47e39c088c41.tar.gz
cpython-14421777fcb6164104a7aadf169c47e39c088c41.tar.bz2
Some new files...
Diffstat (limited to 'Misc/HPUX-NOTES')
-rw-r--r--Misc/HPUX-NOTES21
1 files changed, 21 insertions, 0 deletions
diff --git a/Misc/HPUX-NOTES b/Misc/HPUX-NOTES
new file mode 100644
index 0000000..33ce4d4
--- /dev/null
+++ b/Misc/HPUX-NOTES
@@ -0,0 +1,21 @@
+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
+
+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.