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

Skip to content

Commit eb45232

Browse files
committed
Improved instructions by Chris H.
1 parent ee789b9 commit eb45232

1 file changed

Lines changed: 26 additions & 4 deletions

File tree

BeOS/README

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,22 @@ Python 1.5.2 and later will compile "out of the box" on BeOS), try this:
4141

4242
2) Configure with:
4343

44-
AR=$(pwd)/BeOS/ar-fake RANLIB=: ./configure --verbose --without-gcc \
44+
AR=$(pwd)/BeOS/ar-fake RANLIB=: ./configure --verbose \
4545
--prefix=/boot/home/config --with-thread
46-
46+
47+
If you're on a PowerPC system, add this anywhere in config.h:
48+
49+
#ifndef DL_EXPORT
50+
# define DL_EXPORT(RTYPE) __declspec(dllexport) RTYPE
51+
#endif
52+
#ifndef DL_IMPORT
53+
# ifdef USE_DL_EXPORT
54+
# define DL_IMPORT(RTYPE) __declspec(dllexport) RTYPE
55+
# else
56+
# define DL_IMPORT(RTYPE) __declspec(dllimport) RTYPE
57+
# endif
58+
#endif
59+
4760
3) Copy Modules/Setup.in to Modules/Setup.
4861

4962
4) Edit Modules/Setup to turn on all the modules you want built.
@@ -63,7 +76,11 @@ Python 1.5.2 and later will compile "out of the box" on BeOS), try this:
6376

6477
make AR=$(pwd)/BeOS/ar-fake RANLIB=: OPT=-DUSE_DL_EXPORT \
6578
CCSHARED=-UUSE_DL_EXPORT
66-
79+
80+
On PowerPC systems, you'll see lots of warnings about duplicate
81+
symbols when things get linked; don't worry about this, it's
82+
harmless (and should disappear soon).
83+
6784
7) Test:
6885

6986
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:
86103
make AR=$(pwd)/BeOS/ar-fake RANLIB=: OPT=-DUSE_DL_EXPORT \
87104
CCSHARED=-UUSE_DL_EXPORT install
88105

106+
This will fail trying to copy libpython1.5.a; at that point in the
107+
install, everything you "normally" need is installed (all the Python
108+
bits), and the stuff you need for compiling C-based modules is half-
109+
installed. This will be fixed before the 1.5.2 release.
110+
89111
9) Enjoy!
90112

91113
- Chris Herborth ([email protected])
92-
December 17, 1998
114+
December 18, 1998

0 commit comments

Comments
 (0)