Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fbee23e

Browse files
committed
Documented the fact that IRIX 5.x also supports Sun style shared
libraries.
1 parent e30cb84 commit fbee23e

2 files changed

Lines changed: 20 additions & 22 deletions

File tree

Doc/ext.tex

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -764,15 +764,15 @@ \chapter{Dynamic Loading}
764764
loading a module that was compiled for a different version of Python
765765
(e.g., with a different representation of objects) may dump core.
766766

767-
{\bf NEW:} Under SunOS, dynamic loading now uses SunOS shared
768-
libraries and is always configured. See at the end of this chapter
769-
for how to create a dynamically loadable module.
767+
{\bf NEW:} Under SunOS (all versions) and IRIX 5.x, dynamic loading
768+
now uses shared libraries and is always configured. See at the
769+
end of this chapter for how to create a dynamically loadable module.
770770

771771

772772
\section{Configuring and building the interpreter for dynamic loading}
773773

774-
(Ignore this section for SunOS --- on SunOS dynamic loading is always
775-
configured.)
774+
(Ignore this section for SunOS and IRIX 5.x --- on these systems
775+
dynamic loading is always configured.)
776776

777777
Dynamic loading is a little complicated to configure, since its
778778
implementation is extremely system dependent, and there are no
@@ -812,8 +812,7 @@ \section{Configuring and building the interpreter for dynamic loading}
812812
which version of dl_loadmod to use, and fill in the pathname of the dld
813813
library if you use it. And, of course, you must first build
814814
dl_loadmod and dld, if used. (This is now done through the Configure
815-
script. For SunOS, everything is now automatic as long as the
816-
architecture type is \code{sun4}.)
815+
script. For SunOS and IRIX 5.x, everything is now automatic.)
817816

818817

819818
\section{Building a dynamically loadable module}
@@ -853,17 +852,17 @@ \section{Building a dynamically loadable module}
853852
IF THIS IS NOT DONE THE RESULTING CODE WILL NOT WORK.
854853

855854
\item
856-
{\bf NEW:} On SunOS, you must create a shared library from your \samp{.o}
857-
file using the following command (assuming your module is called
858-
\code{foo}):
855+
{\bf NEW:} On SunOS and IRIX 5.x, you must create a shared library
856+
from your \samp{.o} file using the following command (assuming your
857+
module is called \code{foo}):
859858

860859
\begin{verbatim}
861860
ld -o foomodule.so foomodule.o <any other libraries needed>
862861
\end{verbatim}
863862

864863
and place the resulting \samp{.so} file in the Python search path (not
865864
the \samp{.o} file). Note: on Solaris, you need to pass \samp{-G} to
866-
the loader.
865+
the loader; on IRIX 5.x, you need to pass \samp{-shared}. Sigh...
867866

868867
\end{itemize}
869868

Doc/ext/ext.tex

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -764,15 +764,15 @@ \chapter{Dynamic Loading}
764764
loading a module that was compiled for a different version of Python
765765
(e.g., with a different representation of objects) may dump core.
766766

767-
{\bf NEW:} Under SunOS, dynamic loading now uses SunOS shared
768-
libraries and is always configured. See at the end of this chapter
769-
for how to create a dynamically loadable module.
767+
{\bf NEW:} Under SunOS (all versions) and IRIX 5.x, dynamic loading
768+
now uses shared libraries and is always configured. See at the
769+
end of this chapter for how to create a dynamically loadable module.
770770

771771

772772
\section{Configuring and building the interpreter for dynamic loading}
773773

774-
(Ignore this section for SunOS --- on SunOS dynamic loading is always
775-
configured.)
774+
(Ignore this section for SunOS and IRIX 5.x --- on these systems
775+
dynamic loading is always configured.)
776776

777777
Dynamic loading is a little complicated to configure, since its
778778
implementation is extremely system dependent, and there are no
@@ -812,8 +812,7 @@ \section{Configuring and building the interpreter for dynamic loading}
812812
which version of dl_loadmod to use, and fill in the pathname of the dld
813813
library if you use it. And, of course, you must first build
814814
dl_loadmod and dld, if used. (This is now done through the Configure
815-
script. For SunOS, everything is now automatic as long as the
816-
architecture type is \code{sun4}.)
815+
script. For SunOS and IRIX 5.x, everything is now automatic.)
817816

818817

819818
\section{Building a dynamically loadable module}
@@ -853,17 +852,17 @@ \section{Building a dynamically loadable module}
853852
IF THIS IS NOT DONE THE RESULTING CODE WILL NOT WORK.
854853

855854
\item
856-
{\bf NEW:} On SunOS, you must create a shared library from your \samp{.o}
857-
file using the following command (assuming your module is called
858-
\code{foo}):
855+
{\bf NEW:} On SunOS and IRIX 5.x, you must create a shared library
856+
from your \samp{.o} file using the following command (assuming your
857+
module is called \code{foo}):
859858

860859
\begin{verbatim}
861860
ld -o foomodule.so foomodule.o <any other libraries needed>
862861
\end{verbatim}
863862

864863
and place the resulting \samp{.so} file in the Python search path (not
865864
the \samp{.o} file). Note: on Solaris, you need to pass \samp{-G} to
866-
the loader.
865+
the loader; on IRIX 5.x, you need to pass \samp{-shared}. Sigh...
867866

868867
\end{itemize}
869868

0 commit comments

Comments
 (0)