[Python-checkins] CVS: python/dist/src/BeOS ar-fake,1.4,1.5

Guido van Rossum gvanrossum@users.sourceforge.net
Thu, 18 Jan 2001 16:31:12 -0800


Update of /cvsroot/python/python/dist/src/BeOS
In directory usw-pr-cvs1:/tmp/cvs-serv31809

Modified Files:
	ar-fake 
Log Message:
SF Patch #103188, by Donn Cave: BeOS/ar-fake support for extra
libraries.

(I have no way to test this, I just trust Donn.)


Index: ar-fake
===================================================================
RCS file: /cvsroot/python/python/dist/src/BeOS/ar-fake,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** ar-fake	2000/10/09 16:46:02	1.4
--- ar-fake	2001/01/19 00:31:10	1.5
***************
*** 47,54 ****
          case $BE_HOST_CPU in
          ppc)
!                 mwld -xms -export pragma -nodup -o $1 $library/*
                  ;;
          x86)
!                 gcc -nostart -Wl,-soname=$(basename $1) -o $1 $library/*
                  ;;
          esac
--- 47,63 ----
          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