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

📄 ltmain.sh

📁 移植到WLIT项目的redboot源代码
💻 SH
📖 第 1 页 / 共 5 页
字号:
	fi	;;      -export-symbols | -export-symbols-regex)	if test -n "$export_symbols" || test -n "$export_symbols_regex"; then	  $echo "$modename: cannot have more than one -exported-symbols"	  exit 1	fi	if test "$arg" = "-export-symbols"; then	  prev=expsyms	else	  prev=expsyms_regex	fi	continue	;;      -L*)	dir=`$echo "X$arg" | $Xsed -e 's%^-L\(.*\)$%\1%'`	case "$dir" in	/* | [A-Za-z]:[/\\]*)	  # Add the corresponding hardcode_libdir_flag, if it is not identical.	  ;;	*)	  $echo "$modename: \`-L$dir' cannot specify a relative directory" 1>&2	  exit 1	  ;;	esac	case " $deplibs " in	*" $arg "*) ;;	*) deplibs="$deplibs $arg";;	esac	case " $lib_search_path " in	*" $dir "*) ;;	*) lib_search_path="$lib_search_path $dir";;	esac	case "$host" in	*-*-cygwin* | *-*-mingw* | *-*-os2*)	  dllsearchdir=`cd "$dir" && pwd || echo "$dir"`	  case ":$dllsearchpath:" in	  ::) dllsearchpath="$dllsearchdir";;	  *":$dllsearchdir:"*) ;;	  *) dllsearchpath="$dllsearchpath:$dllsearchdir";;	  esac	  ;;	esac	;;      -l*)	deplibs="$deplibs $arg"	;;      -module)	if test "$module" != yes; then	  module=yes	  if test -n "$export_dynamic_flag_spec"; then	    eval arg=\"$export_dynamic_flag_spec\"	  else	    arg=	  fi	fi	;;	      -no-undefined)	allow_undefined=no	continue	;;      -o) prev=output ;;      -release)	prev=release	continue	;;      -rpath)	prev=rpath	continue	;;      -R)	prev=xrpath	continue	;;      -R*)	xrpath="$xrpath "`$echo "X$arg" | $Xsed -e 's/^-R//'`	continue	;;      -static)	# If we have no pic_flag, then this is the same as -all-static.	if test -z "$pic_flag" && test -n "$link_static_flag"; then	  compile_command="$compile_command $link_static_flag"	  finalize_command="$finalize_command $link_static_flag"	  dlopen_self=$dlopen_self_static	fi	continue	;;      -thread-safe)	thread_safe=yes	continue	;;      -version-info)	prev=vinfo	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	*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*)	  arg="\"$arg\""	  ;;	esac	;;      *.o | *.obj | *.a | *.lib)	# A standard object.	objs="$objs $arg"	;;      *.lo)	# A library object.	if test "$prev" = dlfiles; then	  dlfiles="$dlfiles $arg"	  if test "$build_libtool_libs" = yes && test "$dlopen" = yes; then	    prev=	    continue	  else	    # If libtool objects are unsupported, then we need to preload.	    prev=dlprefiles	  fi	fi	if test "$prev" = dlprefiles; then	  # Preload the old-style object.	  dlprefiles="$dlprefiles "`$echo "X$arg" | $Xsed -e "$lo2o"`	  prev=	fi	libobjs="$libobjs $arg"	;;      *.la)	# A libtool-controlled library.	dlname=	libdir=	library_names=	old_library=	# Check to see that this really is a libtool archive.	if (sed -e '2q' $arg | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :	else	  $echo "$modename: \`$arg' is not a valid libtool archive" 1>&2	  exit 1	fi	# If the library was installed with an old release of libtool,	# it will not redefine variable installed.	installed=yes	# If there is no directory component, then add one.	case "$arg" in	*/* | *\\*) . $arg ;;	*) . ./$arg ;;	esac	# Get the name of the library we link against.	linklib=	for l in $old_library $library_names; do	  linklib="$l"	done	if test -z "$linklib"; then	  $echo "$modename: cannot find name of link library for \`$arg'" 1>&2	  exit 1	fi	# Find the relevant object directory and library name.	name=`$echo "X$arg" | $Xsed -e 's%^.*/%%' -e 's/\.la$//' -e 's/^lib//'`	if test "X$installed" = Xyes; then	  dir="$libdir"	else	  dir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`	  if test "X$dir" = "X$arg"; then	    dir="$objdir"	  else	    dir="$dir/$objdir"	  fi	fi	if test -n "$dependency_libs"; then	  # Extract -R from dependency_libs	  temp_deplibs=	  for deplib in $dependency_libs; do	    case "$deplib" in	    -R*) temp_xrpath=`$echo "X$deplib" | $Xsed -e 's/^-R//'`		 case " $rpath $xrpath " in		 *" $temp_xrpath "*) ;;		 *) xrpath="$xrpath $temp_xrpath";;		 esac;;	    -L*) case "$compile_command $temp_deplibs " in		 *" $deplib "*) ;;		 *) temp_deplibs="$temp_deplibs $deplib";;		 esac;;	    *) temp_deplibs="$temp_deplibs $deplib";;	    esac	  done	  dependency_libs="$temp_deplibs"	fi	if test -z "$libdir"; then	  # It is a libtool convenience library, so add in its objects.	  convenience="$convenience $dir/$old_library"	  old_convenience="$old_convenience $dir/$old_library"	  deplibs="$deplibs$dependency_libs"	  compile_command="$compile_command $dir/$old_library$dependency_libs"	  finalize_command="$finalize_command $dir/$old_library$dependency_libs"	  continue	fi	# This library was specified with -dlopen.	if test "$prev" = dlfiles; then	  dlfiles="$dlfiles $arg"	  if test -z "$dlname" || test "$dlopen" != yes || test "$build_libtool_libs" = no; then	    # If there is no dlname, no dlopen support or we're linking statically,	    # we need to preload.	    prev=dlprefiles	  else	    # We should not create a dependency on this library, but we	    # may need any libraries it requires.	    compile_command="$compile_command$dependency_libs"	    finalize_command="$finalize_command$dependency_libs"	    prev=	    continue	  fi	fi	# The library was specified with -dlpreopen.	if test "$prev" = dlprefiles; then	  # Prefer using a static library (so that no silly _DYNAMIC symbols	  # are required to link).	  if test -n "$old_library"; then	    dlprefiles="$dlprefiles $dir/$old_library"	  else	    dlprefiles="$dlprefiles $dir/$linklib"	  fi	  prev=	fi	if test "$build_libtool_libs" = yes && test -n "$library_names"; then	  link_against_libtool_libs="$link_against_libtool_libs $arg"	  if test -n "$shlibpath_var"; then	    # Make sure the rpath contains only unique directories.	    case "$temp_rpath " in	    *" $dir "*) ;;	    *) temp_rpath="$temp_rpath $dir" ;;	    esac	  fi	  # We need an absolute path.	  case "$dir" in	  /* | [A-Za-z]:[/\\]*) absdir="$dir" ;;	  *)	    absdir=`cd "$dir" && pwd`	    if test -z "$absdir"; then	      $echo "$modename: cannot determine absolute directory name of \`$libdir'" 1>&2	      exit 1	    fi	    ;;	  esac	  	  # This is the magic to use -rpath.	  # Skip directories that are in the system default run-time	  # search path, unless they have been requested with -R.	  case " $sys_lib_dlsearch_path " in 	  *" $absdir "*) ;;	  *)	    case "$compile_rpath " in	    *" $absdir "*) ;;	    *) compile_rpath="$compile_rpath $absdir" 	    esac	    ;; 	  esac	  case " $sys_lib_dlsearch_path " in 	  *" $libdir "*) ;;	  *)	    case "$finalize_rpath " in	    *" $libdir "*) ;;	    *) finalize_rpath="$finalize_rpath $libdir"	    esac	    ;; 	  esac	  lib_linked=yes	  case "$hardcode_action" in	  immediate | unsupported)	    if test "$hardcode_direct" = no; then	      compile_command="$compile_command $dir/$linklib"	      deplibs="$deplibs $dir/$linklib"	      case "$host" in	      *-*-cygwin* | *-*-mingw* | *-*-os2*)		dllsearchdir=`cd "$dir" && pwd || echo "$dir"`		if test -n "$dllsearchpath"; then		  dllsearchpath="$dllsearchpath:$dllsearchdir"		else		  dllsearchpath="$dllsearchdir"		fi		;;	      esac	    elif test "$hardcode_minus_L" = no; then	      case "$host" in	      *-*-sunos*)		compile_shlibpath="$compile_shlibpath$dir:"		;;	      esac	      case "$compile_command " in	      *" -L$dir "*) ;;	      *) compile_command="$compile_command -L$dir";;	      esac	      compile_command="$compile_command -l$name"	      deplibs="$deplibs -L$dir -l$name"	    elif test "$hardcode_shlibpath_var" = no; then	      case ":$compile_shlibpath:" in	      *":$dir:"*) ;;	      *) compile_shlibpath="$compile_shlibpath$dir:";;	      esac	      compile_command="$compile_command -l$name"	      deplibs="$deplibs -l$name"	    else	      lib_linked=no	    fi	    ;;	  relink)	    if test "$hardcode_direct" = yes; then	      compile_command="$compile_command $absdir/$linklib"	      deplibs="$deplibs $absdir/$linklib"	    elif test "$hardcode_minus_L" = yes; then	      case "$compile_command " in	      *" -L$absdir "*) ;;	      *) compile_command="$compile_command -L$absdir";;	      esac	      compile_command="$compile_command -l$name"	      deplibs="$deplibs -L$absdir -l$name"	    elif test "$hardcode_shlibpath_var" = yes; then	      case ":$compile_shlibpath:" in	      *":$absdir:"*) ;;	      *) compile_shlibpath="$compile_shlibpath$absdir:";;	      esac	      compile_command="$compile_command -l$name"	      deplibs="$deplibs -l$name"	    else	      lib_linked=no	    fi	    ;;	  *)	    lib_linked=no	    ;;	  esac	  if test "$lib_linked" != yes; then	    $echo "$modename: configuration error: unsupported hardcode properties"	    exit 1	  fi	  # Finalize command for both is simple: just hardcode it.	  if test "$hardcode_direct" = yes; then	    finalize_command="$finalize_command $libdir/$linklib"	  elif test "$hardcode_minus_L" = yes; then	    case "$finalize_command " in	    *" -L$libdir "*) ;;	    *) finalize_command="$finalize_command -L$libdir";;	    esac	    finalize_command="$finalize_command -l$name"	  elif test "$hardcode_shlibpath_var" = yes; then	    case ":$finalize_shlibpath:" in	    *":$libdir:"*) ;;	    *) finalize_shlibpath="$finalize_shlibpath$libdir:";;	    esac	    finalize_command="$finalize_command -l$name"	  else	    # We cannot seem to hardcode it, guess we'll fake it.	    case "$finalize_command " in	    *" -L$dir "*) ;;	    *) finalize_command="$finalize_command -L$libdir";;	    esac	    finalize_command="$finalize_command -l$name"	  fi	else	  # Transform directly to old archives if we don't build new libraries.	  if test -n "$pic_flag" && test -z "$old_library"; then	    $echo "$modename: cannot find static library for \`$arg'" 1>&2	    exit 1	  fi	  # Here we assume that one of hardcode_direct or hardcode_minus_L	  # is not unsupported.  This is valid on all known static and	  # shared platforms.	  if test "$hardcode_direct" != unsupported; then	    test -n "$old_library" && linklib="$old_library"	    compile_command="$compile_command $dir/$linklib"	    finalize_command="$finalize_command $dir/$linklib"	  else	    case "$compile_command " in	    *" -L$dir "*) ;;	    *) compile_command="$compile_command -L$dir";;	    esac	    compile_command="$compile_command -l$name"	    case "$finalize_command " in	    *" -L$dir "*) ;;	    *) finalize_command="$finalize_command -L$dir";;	    esac	    finalize_command="$finalize_command -l$name"	  fi	fi	# Add in any libraries that this one depends upon.	compile_command="$compile_command$dependency_libs"	finalize_command="$finalize_command$dependency_libs"	continue	;;      # Some other compiler argument.      *)	# 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	;;      esac      # Now actually substitute the argument into the commands.      if test -n "$arg"; then	compile_command="$compile_command $arg"	finalize_command="$finalize_command $arg"      fi    done    if test -n "$prev"; then      $echo "$modename: the \`$prevarg' option requires an argument" 1>&2      $echo "$help" 1>&2      exit 1    fi    oldlibs=    # calculate the name of the file, without its directory    outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`    libobjs_save="$libobjs"    case "$output" in    "")      $echo "$modename: you must specify an output file" 1>&2      $echo "$help" 1>&2      exit 1      ;;    *.a | *.lib)      if test -n "$link_against_libtool_libs"; then	$echo "$modename: error: cannot link libtool libraries into archives" 1>&2	exit 1      fi      if test -n "$deplibs"; then	$echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2      fi      if test -n "$dlfiles$dlprefiles"; then	$echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2      fi

⌨️ 快捷键说明

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