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

📄 ltmain.sh

📁 Linux 下察看 Chm 文件 的 源码
💻 SH
📖 第 1 页 / 共 5 页
字号:
	    exit 1	  fi	  prev=	  continue	  ;;	expsyms_regex)	  export_symbols_regex="$arg"	  prev=	  continue	  ;;	inst_prefix)	  inst_prefix_dir="$arg"	  prev=	  continue	  ;;	release)	  release="-$arg"	  prev=	  continue	  ;;	objectlist)	  if test -f "$arg"; then	    save_arg=$arg	    moreargs=	    for fil in `cat $save_arg`	    do#	      moreargs="$moreargs $fil"	      arg=$fil	      # A libtool-controlled object.	      # Check to see that this really is a libtool object.	      if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then		pic_object=		non_pic_object=		# Read the .lo file		# If there is no directory component, then add one.		case $arg in		*/* | *\\*) . $arg ;;		*) . ./$arg ;;		esac		if test -z "$pic_object" || \		   test -z "$non_pic_object" ||		   test "$pic_object" = none && \		   test "$non_pic_object" = none; then		  $echo "$modename: cannot find name of object for \`$arg'" 1>&2		  exit 1		fi		# Extract subdirectory from the argument.		xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`		if test "X$xdir" = "X$arg"; then		  xdir=		else		  xdir="$xdir/"		fi		if test "$pic_object" != none; then		  # Prepend the subdirectory the object is found in.		  pic_object="$xdir$pic_object"		  if test "$prev" = dlfiles; then		    if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then		      dlfiles="$dlfiles $pic_object"		      prev=		      continue		    else		      # If libtool objects are unsupported, then we need to preload.		      prev=dlprefiles		    fi		  fi		  # CHECK ME:  I think I busted this.  -Ossama		  if test "$prev" = dlprefiles; then		    # Preload the old-style object.		    dlprefiles="$dlprefiles $pic_object"		    prev=		  fi		  # A PIC object.		  libobjs="$libobjs $pic_object"		  arg="$pic_object"		fi		# Non-PIC object.		if test "$non_pic_object" != none; then		  # Prepend the subdirectory the object is found in.		  non_pic_object="$xdir$non_pic_object"		  # A standard non-PIC object		  non_pic_objects="$non_pic_objects $non_pic_object"		  if test -z "$pic_object" || test "$pic_object" = none ; then		    arg="$non_pic_object"		  fi		fi	      else		# Only an error if not doing a dry-run.		if test -z "$run"; then		  $echo "$modename: \`$arg' is not a valid libtool object" 1>&2		  exit 1		else		  # Dry-run case.		  # Extract subdirectory from the argument.		  xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`		  if test "X$xdir" = "X$arg"; then		    xdir=		  else		    xdir="$xdir/"		  fi		  pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`		  non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`		  libobjs="$libobjs $pic_object"		  non_pic_objects="$non_pic_objects $non_pic_object"		fi	      fi	    done	  else	    $echo "$modename: link input file \`$save_arg' does not exist"	    exit 1	  fi	  arg=$save_arg	  prev=	  continue	  ;;	rpath | xrpath)	  # We need an absolute path.	  case $arg in	  [\\/]* | [A-Za-z]:[\\/]*) ;;	  *)	    $echo "$modename: only absolute run-paths are allowed" 1>&2	    exit 1	    ;;	  esac	  if test "$prev" = rpath; then	    case "$rpath " in	    *" $arg "*) ;;	    *) rpath="$rpath $arg" ;;	    esac	  else	    case "$xrpath " in	    *" $arg "*) ;;	    *) xrpath="$xrpath $arg" ;;	    esac	  fi	  prev=	  continue	  ;;	xcompiler)	  compiler_flags="$compiler_flags $qarg"	  prev=	  compile_command="$compile_command $qarg"	  finalize_command="$finalize_command $qarg"	  continue	  ;;	xlinker)	  linker_flags="$linker_flags $qarg"	  compiler_flags="$compiler_flags $wl$qarg"	  prev=	  compile_command="$compile_command $wl$qarg"	  finalize_command="$finalize_command $wl$qarg"	  continue	  ;;	xcclinker)	  linker_flags="$linker_flags $qarg"	  compiler_flags="$compiler_flags $qarg"	  prev=	  compile_command="$compile_command $qarg"	  finalize_command="$finalize_command $qarg"	  continue	  ;;	*)	  eval "$prev=\"\$arg\""	  prev=	  continue	  ;;	esac      fi # test -n "$prev"      prevarg="$arg"      case $arg in      -all-static)	if test -n "$link_static_flag"; then	  compile_command="$compile_command $link_static_flag"	  finalize_command="$finalize_command $link_static_flag"	fi	continue	;;      -allow-undefined)	# FIXME: remove this flag sometime in the future.	$echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2	continue	;;      -avoid-version)	avoid_version=yes	continue	;;      -dlopen)	prev=dlfiles	continue	;;      -dlpreopen)	prev=dlprefiles	continue	;;      -export-dynamic)	export_dynamic=yes	continue	;;      -export-symbols | -export-symbols-regex)	if test -n "$export_symbols" || test -n "$export_symbols_regex"; then	  $echo "$modename: more than one -exported-symbols argument is not allowed"	  exit 1	fi	if test "X$arg" = "X-export-symbols"; then	  prev=expsyms	else	  prev=expsyms_regex	fi	continue	;;      -inst-prefix-dir)	prev=inst_prefix	continue	;;      # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*      # so, if we see these flags be careful not to treat them like -L      -L[A-Z][A-Z]*:*)	case $with_gcc/$host in	no/*-*-irix* | /*-*-irix*)	  compile_command="$compile_command $arg"	  finalize_command="$finalize_command $arg"	  ;;	esac	continue	;;      -L*)	dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`	# We need an absolute path.	case $dir in	[\\/]* | [A-Za-z]:[\\/]*) ;;	*)	  absdir=`cd "$dir" && pwd`	  if test -z "$absdir"; then	    $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2	    exit 1	  fi	  dir="$absdir"	  ;;	esac	case "$deplibs " in	*" -L$dir "*) ;;	*)	  deplibs="$deplibs -L$dir"	  lib_search_path="$lib_search_path $dir"	  ;;	esac	case $host in	*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)	  case :$dllsearchpath: in	  *":$dir:"*) ;;	  *) dllsearchpath="$dllsearchpath:$dir";;	  esac	  ;;	esac	continue	;;      -l*)	if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then	  case $host in	  *-*-cygwin* | *-*-pw32* | *-*-beos*)	    # These systems don't actually have a C or math library (as such)	    continue	    ;;	  *-*-mingw* | *-*-os2*)	    # These systems don't actually have a C library (as such)	    test "X$arg" = "X-lc" && continue	    ;;	  *-*-openbsd* | *-*-freebsd*)	    # Do not include libc due to us having libc/libc_r.	    test "X$arg" = "X-lc" && continue	    ;;	  *-*-rhapsody* | *-*-darwin1.[012])	    # Rhapsody C and math libraries are in the System framework	    deplibs="$deplibs -framework System"	    continue	  esac	elif test "X$arg" = "X-lc_r"; then	 case $host in	 *-*-openbsd* | *-*-freebsd*)	   # Do not include libc_r directly, use -pthread flag.	   continue	   ;;	 esac	fi	deplibs="$deplibs $arg"	continue	;;      -module)	module=yes	continue	;;      # gcc -m* arguments should be passed to the linker via $compiler_flags      # in order to pass architecture information to the linker      # (e.g. 32 vs 64-bit).  This may also be accomplished via -Wl,-mfoo      # but this is not reliable with gcc because gcc may use -mfoo to      # select a different linker, different libraries, etc, while      # -Wl,-mfoo simply passes -mfoo to the linker.      -m*)	# Unknown arguments in both finalize_command and compile_command need	# to be aesthetically quoted because they are evaled later.	arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`	case $arg in	*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*|"")	  arg="\"$arg\""	  ;;	esac        compile_command="$compile_command $arg"        finalize_command="$finalize_command $arg"        if test "$with_gcc" = "yes" ; then          compiler_flags="$compiler_flags $arg"        fi        continue        ;;      -shrext)	prev=shrext	continue	;;      -no-fast-install)	fast_install=no	continue	;;      -no-install)	case $host in	*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)	  # The PATH hackery in wrapper scripts is required on Windows	  # in order for the loader to find any dlls it needs.	  $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2	  $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2	  fast_install=no	  ;;	*) no_install=yes ;;	esac	continue	;;      -no-undefined)	allow_undefined=no	continue	;;      -objectlist)	prev=objectlist	continue	;;      -o) prev=output ;;      -release)	prev=release	continue	;;      -rpath)	prev=rpath	continue	;;      -R)	prev=xrpath	continue	;;      -R*)	dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`	# We need an absolute path.	case $dir in	[\\/]* | [A-Za-z]:[\\/]*) ;;	*)	  $echo "$modename: only absolute run-paths are allowed" 1>&2	  exit 1	  ;;	esac	case "$xrpath " in	*" $dir "*) ;;	*) xrpath="$xrpath $dir" ;;	esac	continue	;;      -static)	# The effects of -static are defined in a previous loop.	# We used to do the same as -all-static on platforms that	# didn't have a PIC flag, but the assumption that the effects	# would be equivalent was wrong.  It would break on at least	# Digital Unix and AIX.	continue	;;      -thread-safe)	thread_safe=yes	continue	;;      -version-info)	prev=vinfo	continue	;;      -version-number)	prev=vinfo	vinfo_number=yes	continue	;;      -Wc,*)	args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`	arg=	save_ifs="$IFS"; IFS=','	for flag in $args; do	  IFS="$save_ifs"	  case $flag in	    *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*|"")	    flag="\"$flag\""	    ;;	  esac	  arg="$arg $wl$flag"	  compiler_flags="$compiler_flags $flag"	done	IFS="$save_ifs"	arg=`$echo "X$arg" | $Xsed -e "s/^ //"`	;;      -Wl,*)	args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`	arg=	save_ifs="$IFS"; IFS=','	for flag in $args; do	  IFS="$save_ifs"	  case $flag in	    *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*|"")	    flag="\"$flag\""	    ;;	  esac	  arg="$arg $wl$flag"	  compiler_flags="$compiler_flags $wl$flag"	  linker_flags="$linker_flags $flag"	done	IFS="$save_ifs"	arg=`$echo "X$arg" | $Xsed -e "s/^ //"`	;;      -Xcompiler)	prev=xcompiler	continue	;;      -Xlinker)	prev=xlinker	continue	;;      -XCClinker)	prev=xcclinker	continue	;;      # Some other compiler flag.      -* | +*)	# Unknown arguments in both finalize_command and compile_command need	# to be aesthetically quoted because they are evaled later.	arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`	case $arg in

⌨️ 快捷键说明

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