mirror of
https://github.com/python/cpython.git
synced 2025-07-31 23:23:11 +00:00
Small imporvements, added mpz and md5 to list of modules,
changed library list somewhat. CLOSE FILE "tmpconfig.c" AFTER WRITING!
This commit is contained in:
parent
09abc8e7df
commit
db392b9b29
1 changed files with 16 additions and 10 deletions
|
@ -9,7 +9,9 @@
|
||||||
#
|
#
|
||||||
# Some problems remain:
|
# Some problems remain:
|
||||||
# - It's highly non-portable, since it knows about paths and libraries
|
# - It's highly non-portable, since it knows about paths and libraries
|
||||||
# (there's a customization section though).
|
# (there's a customization section though, and it knows how to
|
||||||
|
# distinguish an SGI from a Sun SPARC system -- adding knowledge
|
||||||
|
# about more systems is left as an exercise for the reader).
|
||||||
# - You need to have the Python source tree lying around as well as
|
# - You need to have the Python source tree lying around as well as
|
||||||
# the "libpython.a" used to generate the Python binary.
|
# the "libpython.a" used to generate the Python binary.
|
||||||
# - For scripts that use many modules it generates absurdly large
|
# - For scripts that use many modules it generates absurdly large
|
||||||
|
@ -96,20 +98,21 @@ FMAIN = j(SRC, 'frozenmain.c') # Special main source file
|
||||||
libdeps_sgi = [ \
|
libdeps_sgi = [ \
|
||||||
('stdwin', j(STDWIN, 'Build/' + ARCH + '/x11/lib/lib.a')), \
|
('stdwin', j(STDWIN, 'Build/' + ARCH + '/x11/lib/lib.a')), \
|
||||||
('fl', j(FORMS, 'FORMS/libforms.a'), '-lfm_s'), \
|
('fl', j(FORMS, 'FORMS/libforms.a'), '-lfm_s'), \
|
||||||
('*', j(READLINE, 'libreadline.a')), \
|
('*', j(READLINE, 'libreadline.a'), '-ltermcap'), \
|
||||||
('*', '-lm'), \
|
|
||||||
('*', '-lsun'), \
|
|
||||||
('al', '-laudio'), \
|
('al', '-laudio'), \
|
||||||
('sv', '-lsvideo', '-lXext'), \
|
('sv', '-lsvideo', '-lXext'), \
|
||||||
('cd', '-lcdaudio', '-lds'), \
|
('cd', '-lcdaudio', '-lds'), \
|
||||||
('cl', '-lcl'), \
|
('cl', '-lcl'), \
|
||||||
('imgfile', '-limage', '-lgutil', '-lm'), \
|
('imgfile', '-limage', '-lgutil', '-lm'), \
|
||||||
|
('mpz', '/ufs/jh/src/gmp-1.2/libgmp.a'), \
|
||||||
|
('md5', '/ufs/jh/src/md5/md5.o'), \
|
||||||
|
('*', '-lsun'), \
|
||||||
('*', j(DL, 'libdl.a'), '-lmld'), \
|
('*', j(DL, 'libdl.a'), '-lmld'), \
|
||||||
('*', '-lmpc'), \
|
('*', '-lmpc'), \
|
||||||
('fm', '-lfm_s'), \
|
('fm', '-lfm_s'), \
|
||||||
('gl', '-lgl_s'), \
|
('gl', '-lgl_s', '-lX11_s'), \
|
||||||
('*', '-lX11_s'), \
|
('stdwin', '-lX11_s'), \
|
||||||
('*', '-ltermcap'), \
|
('*', '-lm'), \
|
||||||
('*', '-lc_s'), \
|
('*', '-lc_s'), \
|
||||||
]
|
]
|
||||||
libdeps_sun4 = [ \
|
libdeps_sun4 = [ \
|
||||||
|
@ -222,9 +225,9 @@ def process(filename, addmodules):
|
||||||
#
|
#
|
||||||
if not dlmodules:
|
if not dlmodules:
|
||||||
config = CONFIG
|
config = CONFIG
|
||||||
if not quiet: print 'Using', config, '...'
|
if not quiet: print 'Using existing', config, '...'
|
||||||
else:
|
else:
|
||||||
config = 'config.c'
|
config = 'tmpconfig.c'
|
||||||
if nowrite:
|
if nowrite:
|
||||||
if not quiet: print 'NOT writing config.c ...'
|
if not quiet: print 'NOT writing config.c ...'
|
||||||
else:
|
else:
|
||||||
|
@ -248,8 +251,11 @@ def process(filename, addmodules):
|
||||||
for mod in dlmodules:
|
for mod in dlmodules:
|
||||||
g.write('{"' + mod + \
|
g.write('{"' + mod + \
|
||||||
'", init' + mod + '},\n')
|
'", init' + mod + '},\n')
|
||||||
|
g.close()
|
||||||
#
|
#
|
||||||
if not quiet: print 'Readying for compilation ...'
|
if not quiet:
|
||||||
|
if noexec: print 'Generating compilation commands ...'
|
||||||
|
else: print 'Starting compilation ...'
|
||||||
defs = ['-DUSE_FROZEN', '-DPYTHONPATH=\'"."\'']
|
defs = ['-DUSE_FROZEN', '-DPYTHONPATH=\'"."\'']
|
||||||
for mod in dict.keys():
|
for mod in dict.keys():
|
||||||
if dict[mod] == '<builtin>' and mod <> 'sys':
|
if dict[mod] == '<builtin>' and mod <> 'sys':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue