1 # To incorporate the 7300/3b1 shared library, run this script in place
3 # First: Run 'Configure' through to the end and run 'make depend'.
4 # Second: Edit 'makefile' ( not Makefile ) and set CC = 3b1cc.
5 # Third: Edit 'x2p/makefile' and set CC = 3b1cc.
7 # Do not use '3b1cc' as the default compiler. The call to the default
8 # compiler is used by 'perl' and will not be available when running
11 # Note: This script omits libraries which are redundant in the shared
12 # library. It is an excerpt from a grander version available upon
13 # request from "zebra!vern" or "vern@zebra.alphacdc.com".
20 SHAREDLIB="/lib/crt0s.o /lib/shlib.ifile"
29 # These are libraries which are incorporated in the shared library
32 # These routines are in libc.a but not in the shared library
33 if [ ! -f vsprintf.o -o ! -f doprnt.o ]
35 echo "Extracting vsprintf.o from libc.a"
36 ar -x /lib/libc.a vsprintf.o doprnt.o
50 [ "$i" = "$1" ] && match=true
52 [ "$match" != false ] || LIBS="$LIBS $1";;
53 -*) FLAGS="$FLAGS $1";;
54 *.c) COBJS="$COBJS $1";;
55 *.o) LOBJS="$LOBJS $1";;
63 CMD="$CMD $FLAGS $INCL $LPATHS $LIBS $COBJS $CFLAG $TARG"
66 LOBJS="$LOBJS vsprintf.o doprnt.o"
67 CMD="$LD -r $LOBJS $LPATHS $LIBS -o temp.o"
70 CMD="$LD -s temp.o $SHAREDLIB -o $TARG"