99#
1010# Some problems remain:
1111# - It's highly non-portable, since it knows about paths and libraries
12- # (there's a customization section though).
12+ # (there's a customization section though, and it knows how to
13+ # distinguish an SGI from a Sun SPARC system -- adding knowledge
14+ # about more systems is left as an exercise for the reader).
1315# - You need to have the Python source tree lying around as well as
1416# the "libpython.a" used to generate the Python binary.
1517# - For scripts that use many modules it generates absurdly large
9698libdeps_sgi = [ \
9799 ('stdwin' , j (STDWIN , 'Build/' + ARCH + '/x11/lib/lib.a' )), \
98100 ('fl' , j (FORMS , 'FORMS/libforms.a' ), '-lfm_s' ), \
99- ('*' , j (READLINE , 'libreadline.a' )), \
100- ('*' , '-lm' ), \
101- ('*' , '-lsun' ), \
101+ ('*' , j (READLINE , 'libreadline.a' ), '-ltermcap' ), \
102102 ('al' , '-laudio' ), \
103103 ('sv' , '-lsvideo' , '-lXext' ), \
104104 ('cd' , '-lcdaudio' , '-lds' ), \
105105 ('cl' , '-lcl' ), \
106106 ('imgfile' , '-limage' , '-lgutil' , '-lm' ), \
107+ ('mpz' , '/ufs/jh/src/gmp-1.2/libgmp.a' ), \
108+ ('md5' , '/ufs/jh/src/md5/md5.o' ), \
109+ ('*' , '-lsun' ), \
107110 ('*' , j (DL , 'libdl.a' ), '-lmld' ), \
108111 ('*' , '-lmpc' ), \
109112 ('fm' , '-lfm_s' ), \
110- ('gl' , '-lgl_s' ), \
111- ('*' , '-lX11_s' ), \
112- ('*' , '-ltermcap ' ), \
113+ ('gl' , '-lgl_s' , '-lX11_s' ), \
114+ ('stdwin' , '-lX11_s' ), \
115+ ('*' , '-lm ' ), \
113116 ('*' , '-lc_s' ), \
114117 ]
115118libdeps_sun4 = [ \
@@ -222,9 +225,9 @@ def process(filename, addmodules):
222225 #
223226 if not dlmodules :
224227 config = CONFIG
225- if not quiet : print 'Using' , config , '...'
228+ if not quiet : print 'Using existing ' , config , '...'
226229 else :
227- config = 'config .c'
230+ config = 'tmpconfig .c'
228231 if nowrite :
229232 if not quiet : print 'NOT writing config.c ...'
230233 else :
@@ -248,8 +251,11 @@ def process(filename, addmodules):
248251 for mod in dlmodules :
249252 g .write ('{"' + mod + \
250253 '", init' + mod + '},\n ' )
254+ g .close ()
251255 #
252- if not quiet : print 'Readying for compilation ...'
256+ if not quiet :
257+ if noexec : print 'Generating compilation commands ...'
258+ else : print 'Starting compilation ...'
253259 defs = ['-DUSE_FROZEN' , '-DPYTHONPATH=\' "."\' ' ]
254260 for mod in dict .keys ():
255261 if dict [mod ] == '<builtin>' and mod <> 'sys' :
0 commit comments