mirror of
https://github.com/python/cpython.git
synced 2025-11-28 22:18:54 +00:00
SF Patch #103188, by Donn Cave: BeOS/ar-fake support for extra
libraries. (I have no way to test this, I just trust Donn.)
This commit is contained in:
parent
7150a77863
commit
3fa560b343
1 changed files with 11 additions and 2 deletions
13
BeOS/ar-fake
13
BeOS/ar-fake
|
|
@ -46,10 +46,19 @@ d)
|
||||||
so)
|
so)
|
||||||
case $BE_HOST_CPU in
|
case $BE_HOST_CPU in
|
||||||
ppc)
|
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)
|
x86)
|
||||||
gcc -nostart -Wl,-soname=$(basename $1) -o $1 $library/*
|
ld -shared -soname $(basename $1) -o $1 $library/*
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
status=$?
|
status=$?
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue