diff options
author | Mariatta Wijaya <mariatta.wijaya@gmail.com> | 2017-02-06 20:18:39 -0800 |
---|---|---|
committer | Mariatta Wijaya <mariatta.wijaya@gmail.com> | 2017-02-06 20:18:39 -0800 |
commit | 731cca110f376cdbaffb536e42d6c9d6da574fa8 (patch) | |
tree | 9cb95caf6f8b933115820bf699725d9cd600d2df /Modules/ar_beos | |
parent | da79bcf8ac7ae72218ab023e1ed54390bc1a3a27 (diff) | |
parent | c8102f4d974669f4c5e4ca7bcd73292a1ac5bcbf (diff) | |
download | cpython-731cca110f376cdbaffb536e42d6c9d6da574fa8.tar.gz |
Issue #29371: merge with 3.6
Diffstat (limited to 'Modules/ar_beos')
-rwxr-xr-x | Modules/ar_beos | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/Modules/ar_beos b/Modules/ar_beos deleted file mode 100755 index e7efa75401..0000000000 --- a/Modules/ar_beos +++ /dev/null @@ -1,73 +0,0 @@ -#!/bin/sh -# -# Truly fake ar, using a directory to store object files. -# -# Donn Cave, donn@oz.net - -usage='Usage: ar-fake cr libpython.dir obj.o ... - ar-fake d libpython.dir obj.o ... - ar-fake so libpython.dir libpython.so' - -case $# in -0|1|2) - echo "$usage" >&2 - exit 1 - ;; -esac - -command=$1 -library=$2 -shift 2 - -case $command in -cr) - if test -d $library - then : - else - mkdir $library - fi - if cp -p $* $library - then - # To force directory modify date, create or delete a file. - if test -e $library/.tch - then rm $library/.tch - else echo tch > $library/.tch - fi - exit 0 - fi - ;; -d) - if test -d $library - then - cd $library - rm -f $* - fi - ;; -so) - case $BE_HOST_CPU in - ppc) - # 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) - ld -shared -soname $(basename $1) -o $1 $library/* - ;; - esac - status=$? - cd $(dirname $1) - ln -sf $PWD lib - exit $status - ;; -*) - echo "$usage" >&2 - exit 1 - ;; -esac |