diff options
author | Guido van Rossum <guido@python.org> | 2001-01-19 00:31:10 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-01-19 00:31:10 (GMT) |
commit | 3fa560b343f97ec90d1ba18facdcf2515754ae69 (patch) | |
tree | c700d441374167e485a4b28bc14a48b538c6b485 /BeOS | |
parent | 7150a778634e304d5aca6b708518d4ce5e71d56c (diff) | |
download | cpython-3fa560b343f97ec90d1ba18facdcf2515754ae69.zip cpython-3fa560b343f97ec90d1ba18facdcf2515754ae69.tar.gz cpython-3fa560b343f97ec90d1ba18facdcf2515754ae69.tar.bz2 |
SF Patch #103188, by Donn Cave: BeOS/ar-fake support for extra
libraries.
(I have no way to test this, I just trust Donn.)
Diffstat (limited to 'BeOS')
-rwxr-xr-x | BeOS/ar-fake | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/BeOS/ar-fake b/BeOS/ar-fake index 4a06e3b..e7efa75 100755 --- a/BeOS/ar-fake +++ b/BeOS/ar-fake @@ -46,10 +46,19 @@ d) so) case $BE_HOST_CPU in ppc) - mwld -xms -export pragma -nodup -o $1 $library/* + # In case your libpython.a refers to any exotic libraries, + # mwld needs to know that here. The following hack makes + # a couple of assumptions about Modules/Makefile. If it + # doesn't work, you may as well add the necessary libraries + # here explicitly instead. + extralibs=$( + (cd Modules; make -f Makefile -n link) | + sed -n 's/.*\.so \(.*\) -o python.*/\1/p' + ) + mwld -xms -export pragma -nodup -o $1 $library/* $extralibs ;; x86) - gcc -nostart -Wl,-soname=$(basename $1) -o $1 $library/* + ld -shared -soname $(basename $1) -o $1 $library/* ;; esac status=$? |