3 # Truly fake ar, using a directory to store object files.
5 # Donn Cave, donn@oz.net
7 usage
='Usage: ar-fake cr libpython.dir obj.o ...
8 ar-fake d libpython.dir obj.o ...
9 ar-fake so libpython.dir libpython.so'
31 # To force directory modify date, create or delete a file.
32 if test -e $library/.tch
34 else echo tch
> $library/.tch
49 # In case your libpython.a refers to any exotic libraries,
50 # mwld needs to know that here. The following hack makes
51 # a couple of assumptions about Modules/Makefile. If it
52 # doesn't work, you may as well add the necessary libraries
53 # here explicitly instead.
55 (cd Modules
; make -f Makefile
-n link
) |
56 sed -n 's/.*\.so \(.*\) -o python.*/\1/p'
58 mwld
-xms -export pragma
-nodup -o $1 $library/* $extralibs
61 ld
-shared -soname $
(basename $1) -o $1 $library/*