⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 3b1cc

📁 早期freebsd实现
💻
字号:
# To incorporate the 7300/3b1 shared library, run this script in place# of 'CC'.# First: Run 'Configure' through to the end and run 'make depend'.# Second: Edit 'makefile' ( not Makefile ) and set CC = 3b1cc.# Third: Edit 'x2p/makefile' and set CC = 3b1cc.## Do not use '3b1cc' as the default compiler.  The call to the default# compiler is used by 'perl' and will not be available when running# 'perl'.## Note: This script omits libraries which are redundant in the shared# library.  It is an excerpt from a grander version available upon# request from "zebra!vern" or "vern@zebra.alphacdc.com".CC="cc"LIBS=INCL=LD="ld"SHAREDLIB="/lib/crt0s.o /lib/shlib.ifile"# Local variablesCOBJS=LOBJS=TARG=FLAGS=CMD=# These are libraries which are incorporated in the shared libraryOMIT="-lmalloc"# These routines are in libc.a but not in the shared libraryif [ ! -f vsprintf.o -o ! -f doprnt.o ]then	echo "Extracting vsprintf.o from libc.a"	ar -x /lib/libc.a vsprintf.o doprnt.ofiCMD="$CC"while [ $# -gt 0 ]do	case $1 in	-c)	CFLAG=$1;;	-o)	CFLAG=$1		shift		TARG="$1";;	-l*)	match=false		for i in $OMIT		do			[ "$i" = "$1" ] && match=true		done		[ "$match" != false ] || LIBS="$LIBS $1";;	-*)	FLAGS="$FLAGS $1";;	*.c)	COBJS="$COBJS $1";;	*.o)	LOBJS="$LOBJS $1";;	*)	TARG="$1";;	esac	shiftdoneif [ -n "$COBJS" ]then	CMD="$CMD $FLAGS $INCL $LPATHS $LIBS $COBJS $CFLAG $TARG"elif [ -n "$LOBJS" ]then	LOBJS="$LOBJS vsprintf.o doprnt.o"	CMD="$LD -r $LOBJS $LPATHS $LIBS -o temp.o"	echo "\t$CMD"	$CMD	CMD="$LD -s temp.o $SHAREDLIB -o $TARG"	echo "\t$CMD"	$CMD	ccrslt=$?	if [ $ccrslt -ne 0 ]	then		exit $ccrslt	fi	CMD="rm -f temp.o"else	exit 1fiecho "\t$CMD"$CMDccrslt=$?rm -f $$.c	exit $ccrslt

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -