mirror of https://github.com/python/cpython.git
Improved instructions by Chris H.
This commit is contained in:
parent
ee789b9601
commit
eb452321af
26
BeOS/README
26
BeOS/README
|
@ -41,9 +41,22 @@ Python 1.5.2 and later will compile "out of the box" on BeOS), try this:
|
||||||
|
|
||||||
2) Configure with:
|
2) Configure with:
|
||||||
|
|
||||||
AR=$(pwd)/BeOS/ar-fake RANLIB=: ./configure --verbose --without-gcc \
|
AR=$(pwd)/BeOS/ar-fake RANLIB=: ./configure --verbose \
|
||||||
--prefix=/boot/home/config --with-thread
|
--prefix=/boot/home/config --with-thread
|
||||||
|
|
||||||
|
If you're on a PowerPC system, add this anywhere in config.h:
|
||||||
|
|
||||||
|
#ifndef DL_EXPORT
|
||||||
|
# define DL_EXPORT(RTYPE) __declspec(dllexport) RTYPE
|
||||||
|
#endif
|
||||||
|
#ifndef DL_IMPORT
|
||||||
|
# ifdef USE_DL_EXPORT
|
||||||
|
# define DL_IMPORT(RTYPE) __declspec(dllexport) RTYPE
|
||||||
|
# else
|
||||||
|
# define DL_IMPORT(RTYPE) __declspec(dllimport) RTYPE
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
3) Copy Modules/Setup.in to Modules/Setup.
|
3) Copy Modules/Setup.in to Modules/Setup.
|
||||||
|
|
||||||
4) Edit Modules/Setup to turn on all the modules you want built.
|
4) Edit Modules/Setup to turn on all the modules you want built.
|
||||||
|
@ -64,6 +77,10 @@ Python 1.5.2 and later will compile "out of the box" on BeOS), try this:
|
||||||
make AR=$(pwd)/BeOS/ar-fake RANLIB=: OPT=-DUSE_DL_EXPORT \
|
make AR=$(pwd)/BeOS/ar-fake RANLIB=: OPT=-DUSE_DL_EXPORT \
|
||||||
CCSHARED=-UUSE_DL_EXPORT
|
CCSHARED=-UUSE_DL_EXPORT
|
||||||
|
|
||||||
|
On PowerPC systems, you'll see lots of warnings about duplicate
|
||||||
|
symbols when things get linked; don't worry about this, it's
|
||||||
|
harmless (and should disappear soon).
|
||||||
|
|
||||||
7) Test:
|
7) Test:
|
||||||
|
|
||||||
make AR=$(pwd)/BeOS/ar-fake RANLIB=: OPT=-DUSE_DL_EXPORT \
|
make AR=$(pwd)/BeOS/ar-fake RANLIB=: OPT=-DUSE_DL_EXPORT \
|
||||||
|
@ -86,7 +103,12 @@ Python 1.5.2 and later will compile "out of the box" on BeOS), try this:
|
||||||
make AR=$(pwd)/BeOS/ar-fake RANLIB=: OPT=-DUSE_DL_EXPORT \
|
make AR=$(pwd)/BeOS/ar-fake RANLIB=: OPT=-DUSE_DL_EXPORT \
|
||||||
CCSHARED=-UUSE_DL_EXPORT install
|
CCSHARED=-UUSE_DL_EXPORT install
|
||||||
|
|
||||||
|
This will fail trying to copy libpython1.5.a; at that point in the
|
||||||
|
install, everything you "normally" need is installed (all the Python
|
||||||
|
bits), and the stuff you need for compiling C-based modules is half-
|
||||||
|
installed. This will be fixed before the 1.5.2 release.
|
||||||
|
|
||||||
9) Enjoy!
|
9) Enjoy!
|
||||||
|
|
||||||
- Chris Herborth (chrish@qnx.com)
|
- Chris Herborth (chrish@qnx.com)
|
||||||
December 17, 1998
|
December 18, 1998
|
||||||
|
|
Loading…
Reference in New Issue