mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Chris Herborth writes:
Here's a little cleanup of the BeOS/ directory for 1.5.2b2; it makes the ar-fake, linkcc and linkmodule shell scripts a little smarter (and, in the case of PowerPC systems, quieter :-).
This commit is contained in:
parent
cad3d47f1e
commit
e89d4506c1
2 changed files with 12 additions and 5 deletions
14
BeOS/linkcc
14
BeOS/linkcc
|
@ -36,7 +36,7 @@
|
|||
LIBRARY="$1"; shift
|
||||
|
||||
# What we want to end up with.
|
||||
DYNAMIC=${LIBRARY%.a}.so
|
||||
DYNAMIC=${LIBRARY/.a/.so}
|
||||
LINK_DYNAMIC="-l$(basename ${DYNAMIC%.so} | sed -e s,lib,,)"
|
||||
|
||||
# Grab the rest of the args and build them into the command used to
|
||||
|
@ -61,10 +61,16 @@ done
|
|||
# a little overkill, but it'll be OK.
|
||||
LIBS="-lbe -lnet -lroot"
|
||||
|
||||
case $BE_HOST_CPU in
|
||||
ppc)
|
||||
LIBS="-nodup $LIBS"
|
||||
;;
|
||||
esac
|
||||
|
||||
# We'll need this or the python binary won't load libpython.so... handy
|
||||
# for testing.
|
||||
( cd .. ; ln -sf `pwd` lib )
|
||||
( cd .. ; ln -sf $(pwd) lib )
|
||||
|
||||
# Now build the python binary.
|
||||
echo "Link command: $LINK_CMD"
|
||||
$LINK_CMD
|
||||
echo "Link command: $LINK_CMD $LIBS"
|
||||
$LINK_CMD $LIBS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue