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

Skip to content

Commit 4462e93

Browse files
committed
Various notes added:
- -mt option for Solaris threads with Solaris compiler - make clean when switching static link status for Linux - DEC alpha --with-dec-threads option - SunOS removed unnecessary warnings, mention -Xa for SunPro - Setup.local file - warn to try make clean after changing readline option - mention --with-threads as alias for --with-thread
1 parent ec2f073 commit 4462e93

1 file changed

Lines changed: 32 additions & 16 deletions

File tree

README

Lines changed: 32 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -146,13 +146,24 @@ Platform specific notes
146146
on these platforms without the special directions mentioned here, let
147147
me know so I can remove them!)
148148

149+
Solaris: When using Sun's C compiler with threads, at least on Solaris
150+
2.5.1, you need to add the "-mt" compiler option (the simplest
151+
way is probably to specify the compiler with this option as
152+
the "CC" environment variable when running the configure
153+
script).
154+
149155
Linux: On Linux version 1.x, once you've built Python, use it to run
150156
the regen script in the Lib/linux1 directory. Apparently
151157
the files as distributed don't match the system headers on
152158
some Linux versions. (The "h2py" command refers to
153159
Tools/scripts/h2py.py.) The modules distributed for Linux 2.x
154160
should be okay. Shared library support now works by default
155-
on ELF-based x86 Linux systems.
161+
on ELF-based x86 Linux systems. (Note: when you change the
162+
status of a module from static to shared, you must remove its
163+
.o file or do a "make clean".)
164+
165+
DEC Alpha OFS/1: When enabling threads, use --with-dec-threads, not
166+
--with-thread.
156167

157168
AIX: A complete overhaul of the shared library support is now in
158169
place. To enable it, uncomment the LINKCC line in the Setup
@@ -188,12 +199,9 @@ SCO: 1) Everything works much better if you add -U__STDC__ to the
188199
3) According to at least one report, the above apply only to
189200
SCO 3 -- Python builds out of the box on SCO 5.
190201

191-
SunOS: On SunOS 4.x, when using the native "cc" compiler, you have to
192-
disable modules "cmath" and "operator" in Modules/Setup (see
193-
the next section) and edit the various Makefiles to add
194-
"-DWITHOUT_COMPLEX" to the CFLAGS variable, in order to
195-
overcome the limitation to pre-ANSI C. (Or, of course, you
196-
could get gcc :-).
202+
SunOS: On SunOS 4.1.x, when using the SunPro C compiler, you may want
203+
to use the '-Xa' option instead of '-Xc', to enable some
204+
needed non-ANSI Sunisms.
197205

198206
NeXT: To build fat binaries, use the --with-next-archs switch
199207
described below.
@@ -226,6 +234,12 @@ system libraries, e.g. the GL library and the audio hardware.
226234
For SunOS and Solaris, enable module "sunaudiodev" to support the
227235
audio device.
228236

237+
In addition to the file Setup, you can also edit the file Setup.local.
238+
(the makesetup script processes both). You may find it more
239+
convenient to edit Setup.local and leave Setup alone. Then, when
240+
installing a new Python version, you can copy your old Setup.local
241+
file.
242+
229243

230244
Setting the optimization/debugging options
231245
------------------------------------------
@@ -303,7 +317,8 @@ WARNING: if you rerun the configure script with different options, you
303317
must run "make clean" before rebuilding. Exceptions to this rule:
304318
after changing --prefix or --exec-prefix, all you need to do is remove
305319
Modules/getpath.o; after changing --with-readline, just remove
306-
Parser/myreadline.o.
320+
Parser/myreadline.o (but if it doesn't seem to work, always try "make
321+
clean" before giving up or complaining!).
307322

308323
--with(out)-gcc: The configure script uses gcc (the GNU C compiler) if
309324
it finds it. If you don't want this, or if this compiler is
@@ -353,14 +368,15 @@ Parser/myreadline.o.
353368
readline library are in the FAQ (file Misc/FAQ).
354369

355370
--with-thread: On most Unix systems, you can now use multiple threads.
356-
To enable this, pass --with-thread. If the library required
357-
for threads lives in a peculiar place, you can use
358-
--with-thread=DIRECTORY. In the Modules/Setup file, enable
359-
the thread module. (Threads aren't enabled automatically
360-
because there are run-time penalties when support for them is
361-
compiled in even if you don't use them.) IMPORTANT: run "make
362-
clean" after changing (either enabling or disabling) this
363-
option!
371+
To enable this, pass --with-thread. (--with-threads is an
372+
alias.) If the library required for threads lives in a
373+
peculiar place, you can use --with-thread=DIRECTORY. In the
374+
Modules/Setup file, enable the thread module. (Threads aren't
375+
enabled automatically because there are run-time penalties
376+
when support for them is compiled in even if you don't use
377+
them.) IMPORTANT: run "make clean" after changing (either
378+
enabling or disabling) this option! Note: for DEC Alpha OSF/1,
379+
use --with-dec-threads instead.
364380

365381
--with-sgi-dl: On SGI IRIX 4, dynamic loading of extension modules is
366382
supported by the "dl" library by Jack Jansen, which is

0 commit comments

Comments
 (0)