link-2.test
来自「这是一个自动生成MAKEFILE的工具。一个很有用的库。在LINUX工程项目里是」· TEST 代码 · 共 37 行
TEST
37 行
#! /bin/sh# link.test - check that .lo files aren't made into programs.# Test script header.need_prefix=noif test -z "$srcdir"; then srcdir=`echo "$0" | sed 's%/[^/]*$%%'` test "$srcdir" = "$0" && srcdir=. test "${VERBOSE+set}" != "set" && VERBOSE=yesfi. $srcdir/defs || exit 1rm -f hell.locat > hell.lo <<EOF# Generated by libtoolpic_object=nonenon_pic_object=hell.oEOF# Try a sample link command.linkresult=`$libtool -n --mode=link $CC -o something foo.o hell.lo`res=$?rm -f hell.lotest $res -eq 0 || exit 1echo "$linkresult"case "$linkresult" in*".lo "*) echo "$0: .lo files should not be linked into programs" exit 1 ;;esacexit 0
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?