ltmain.sh (302408) | ltmain.sh (275970) |
---|---|
1 | 1 |
2# libtool (GNU libtool) 2.4.2 | 2# libtool (GNU libtool) 2.4 |
3# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 4 5# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, | 3# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 4 5# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, |
6# 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. | 6# 2007, 2008, 2009, 2010 Free Software Foundation, Inc. |
7# This is free software; see the source for copying conditions. There is NO 8# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 10# GNU Libtool is free software; you can redistribute it and/or modify 11# it under the terms of the GNU General Public License as published by 12# the Free Software Foundation; either version 2 of the License, or 13# (at your option) any later version. 14# --- 21 unchanged lines hidden (view full) --- 36# --debug enable verbose shell tracing 37# -n, --dry-run display commands without modifying any files 38# --features display basic configuration information and exit 39# --mode=MODE use operation mode MODE 40# --preserve-dup-deps don't remove duplicate dependency libraries 41# --quiet, --silent don't print informational messages 42# --no-quiet, --no-silent 43# print informational messages (default) | 7# This is free software; see the source for copying conditions. There is NO 8# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 10# GNU Libtool is free software; you can redistribute it and/or modify 11# it under the terms of the GNU General Public License as published by 12# the Free Software Foundation; either version 2 of the License, or 13# (at your option) any later version. 14# --- 21 unchanged lines hidden (view full) --- 36# --debug enable verbose shell tracing 37# -n, --dry-run display commands without modifying any files 38# --features display basic configuration information and exit 39# --mode=MODE use operation mode MODE 40# --preserve-dup-deps don't remove duplicate dependency libraries 41# --quiet, --silent don't print informational messages 42# --no-quiet, --no-silent 43# print informational messages (default) |
44# --no-warn don't display warning messages | |
45# --tag=TAG use configuration variables from tag TAG 46# -v, --verbose print more informational messages than default 47# --no-verbose don't print the extra informational messages 48# --version print version information 49# -h, --help, --help-all print short, long, or detailed help message 50# 51# MODE must be one of the following: 52# --- 12 unchanged lines hidden (view full) --- 65# When reporting a bug, please describe a test case to reproduce it and 66# include the following information: 67# 68# host-triplet: $host 69# shell: $SHELL 70# compiler: $LTCC 71# compiler flags: $LTCFLAGS 72# linker: $LD (gnu? $with_gnu_ld) | 44# --tag=TAG use configuration variables from tag TAG 45# -v, --verbose print more informational messages than default 46# --no-verbose don't print the extra informational messages 47# --version print version information 48# -h, --help, --help-all print short, long, or detailed help message 49# 50# MODE must be one of the following: 51# --- 12 unchanged lines hidden (view full) --- 64# When reporting a bug, please describe a test case to reproduce it and 65# include the following information: 66# 67# host-triplet: $host 68# shell: $SHELL 69# compiler: $LTCC 70# compiler flags: $LTCFLAGS 71# linker: $LD (gnu? $with_gnu_ld) |
73# $progname: (GNU libtool) 2.4.2 | 72# $progname: (GNU libtool) 2.4 |
74# automake: $automake_version 75# autoconf: $autoconf_version 76# 77# Report bugs to <bug-libtool@gnu.org>. 78# GNU libtool home page: <http://www.gnu.org/software/libtool/>. 79# General help using GNU software: <http://www.gnu.org/gethelp/>. 80 81PROGRAM=libtool 82PACKAGE=libtool | 73# automake: $automake_version 74# autoconf: $autoconf_version 75# 76# Report bugs to <bug-libtool@gnu.org>. 77# GNU libtool home page: <http://www.gnu.org/software/libtool/>. 78# General help using GNU software: <http://www.gnu.org/gethelp/>. 79 80PROGRAM=libtool 81PACKAGE=libtool |
83VERSION=2.4.2 | 82VERSION=2.4 |
84TIMESTAMP="" | 83TIMESTAMP="" |
85package_revision=1.3337 | 84package_revision=1.3293 |
86 87# Be Bourne compatible 88if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 89 emulate sh 90 NULLCMD=: 91 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 92 # is contrary to our usage. Disable this feature. 93 alias -g '${1+"$@"}'='"$@"' --- 38 unchanged lines hidden (view full) --- 132# positional parameter $0, within a function call, is the name of the 133# function. 134progpath="$0" 135 136 137 138: ${CP="cp -f"} 139test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'} | 85 86# Be Bourne compatible 87if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 88 emulate sh 89 NULLCMD=: 90 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 91 # is contrary to our usage. Disable this feature. 92 alias -g '${1+"$@"}'='"$@"' --- 38 unchanged lines hidden (view full) --- 131# positional parameter $0, within a function call, is the name of the 132# function. 133progpath="$0" 134 135 136 137: ${CP="cp -f"} 138test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'} |
139: ${EGREP="grep -E"} 140: ${FGREP="grep -F"} 141: ${GREP="grep"} 142: ${LN_S="ln -s"} |
|
140: ${MAKE="make"} 141: ${MKDIR="mkdir"} 142: ${MV="mv -f"} 143: ${RM="rm -f"} | 143: ${MAKE="make"} 144: ${MKDIR="mkdir"} 145: ${MV="mv -f"} 146: ${RM="rm -f"} |
147: ${SED="sed"} |
|
144: ${SHELL="${CONFIG_SHELL-/bin/sh}"} 145: ${Xsed="$SED -e 1s/^X//"} 146 147# Global variables: 148EXIT_SUCCESS=0 149EXIT_FAILURE=1 150EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. 151EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. --- 226 unchanged lines hidden (view full) --- 378 [\\/]*|[A-Za-z]:\\*) ;; 379 *[\\/]*) 380 progdir=$func_dirname_result 381 progdir=`cd "$progdir" && pwd` 382 progpath="$progdir/$progname" 383 ;; 384 *) 385 save_IFS="$IFS" | 148: ${SHELL="${CONFIG_SHELL-/bin/sh}"} 149: ${Xsed="$SED -e 1s/^X//"} 150 151# Global variables: 152EXIT_SUCCESS=0 153EXIT_FAILURE=1 154EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. 155EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. --- 226 unchanged lines hidden (view full) --- 382 [\\/]*|[A-Za-z]:\\*) ;; 383 *[\\/]*) 384 progdir=$func_dirname_result 385 progdir=`cd "$progdir" && pwd` 386 progpath="$progdir/$progname" 387 ;; 388 *) 389 save_IFS="$IFS" |
386 IFS=${PATH_SEPARATOR-:} | 390 IFS=: |
387 for progdir in $PATH; do 388 IFS="$save_IFS" 389 test -x "$progdir/$progname" && break 390 done 391 IFS="$save_IFS" 392 test -n "$progdir" || progdir=`pwd` 393 progpath="$progdir/$progname" 394 ;; --- 367 unchanged lines hidden (view full) --- 762 s/^# *$// 763 s*\$progname*'$progname'* 764 s*\$host*'"$host"'* 765 s*\$SHELL*'"$SHELL"'* 766 s*\$LTCC*'"$LTCC"'* 767 s*\$LTCFLAGS*'"$LTCFLAGS"'* 768 s*\$LD*'"$LD"'* 769 s/\$with_gnu_ld/'"$with_gnu_ld"'/ | 391 for progdir in $PATH; do 392 IFS="$save_IFS" 393 test -x "$progdir/$progname" && break 394 done 395 IFS="$save_IFS" 396 test -n "$progdir" || progdir=`pwd` 397 progpath="$progdir/$progname" 398 ;; --- 367 unchanged lines hidden (view full) --- 766 s/^# *$// 767 s*\$progname*'$progname'* 768 s*\$host*'"$host"'* 769 s*\$SHELL*'"$SHELL"'* 770 s*\$LTCC*'"$LTCC"'* 771 s*\$LTCFLAGS*'"$LTCFLAGS"'* 772 s*\$LD*'"$LD"'* 773 s/\$with_gnu_ld/'"$with_gnu_ld"'/ |
770 s/\$automake_version/'"`(${AUTOMAKE-automake} --version) 2>/dev/null |$SED 1q`"'/ 771 s/\$autoconf_version/'"`(${AUTOCONF-autoconf} --version) 2>/dev/null |$SED 1q`"'/ | 774 s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/ 775 s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/ |
772 p 773 d 774 } 775 /^# .* home page:/b print 776 /^# General help using/b print 777 ' < "$progpath" 778 ret=$? 779 if test -z "$1"; then --- 263 unchanged lines hidden (view full) --- 1043opt_dry_run=false 1044opt_config=false 1045opt_preserve_dup_deps=false 1046opt_features=false 1047opt_finish=false 1048opt_help=false 1049opt_help_all=false 1050opt_silent=: | 776 p 777 d 778 } 779 /^# .* home page:/b print 780 /^# General help using/b print 781 ' < "$progpath" 782 ret=$? 783 if test -z "$1"; then --- 263 unchanged lines hidden (view full) --- 1047opt_dry_run=false 1048opt_config=false 1049opt_preserve_dup_deps=false 1050opt_features=false 1051opt_finish=false 1052opt_help=false 1053opt_help_all=false 1054opt_silent=: |
1051opt_warning=: | |
1052opt_verbose=: 1053opt_silent=false 1054opt_verbose=false 1055 1056 1057# Parse options once, thoroughly. This comes as soon as possible in the 1058# script to make things like `--version' happen as quickly as we can. 1059{ --- 52 unchanged lines hidden (view full) --- 1112 ;; 1113esac 1114 shift 1115 ;; 1116 --no-silent|--no-quiet) 1117 opt_silent=false 1118func_append preserve_args " $opt" 1119 ;; | 1055opt_verbose=: 1056opt_silent=false 1057opt_verbose=false 1058 1059 1060# Parse options once, thoroughly. This comes as soon as possible in the 1061# script to make things like `--version' happen as quickly as we can. 1062{ --- 52 unchanged lines hidden (view full) --- 1115 ;; 1116esac 1117 shift 1118 ;; 1119 --no-silent|--no-quiet) 1120 opt_silent=false 1121func_append preserve_args " $opt" 1122 ;; |
1120 --no-warning|--no-warn) 1121 opt_warning=false 1122func_append preserve_args " $opt" 1123 ;; | |
1124 --no-verbose) 1125 opt_verbose=false 1126func_append preserve_args " $opt" 1127 ;; 1128 --silent|--quiet) 1129 opt_silent=: 1130func_append preserve_args " $opt" 1131 opt_verbose=false --- 923 unchanged lines hidden (view full) --- 2055 esac 2056 2057 # Recognize several different file suffixes. 2058 # If the user specifies -o file.o, it is replaced with file.lo 2059 case $libobj in 2060 *.[cCFSifmso] | \ 2061 *.ada | *.adb | *.ads | *.asm | \ 2062 *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ | 1123 --no-verbose) 1124 opt_verbose=false 1125func_append preserve_args " $opt" 1126 ;; 1127 --silent|--quiet) 1128 opt_silent=: 1129func_append preserve_args " $opt" 1130 opt_verbose=false --- 923 unchanged lines hidden (view full) --- 2054 esac 2055 2056 # Recognize several different file suffixes. 2057 # If the user specifies -o file.o, it is replaced with file.lo 2058 case $libobj in 2059 *.[cCFSifmso] | \ 2060 *.ada | *.adb | *.ads | *.asm | \ 2061 *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ |
2063 *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup) | 2062 *.[fF][09]? | *.for | *.java | *.obj | *.sx | *.cu | *.cup) |
2064 func_xform "$libobj" 2065 libobj=$func_xform_result 2066 ;; 2067 esac 2068 2069 case $libobj in 2070 *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;; 2071 *) --- 1125 unchanged lines hidden (view full) --- 3197 done 3198 3199 for file in $staticlibs; do 3200 func_basename "$file" 3201 name="$func_basename_result" 3202 3203 # Set up the ranlib parameters. 3204 oldlib="$destdir/$name" | 2063 func_xform "$libobj" 2064 libobj=$func_xform_result 2065 ;; 2066 esac 2067 2068 case $libobj in 2069 *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;; 2070 *) --- 1125 unchanged lines hidden (view full) --- 3196 done 3197 3198 for file in $staticlibs; do 3199 func_basename "$file" 3200 name="$func_basename_result" 3201 3202 # Set up the ranlib parameters. 3203 oldlib="$destdir/$name" |
3205 func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 3206 tool_oldlib=$func_to_tool_file_result | |
3207 3208 func_show_eval "$install_prog \$file \$oldlib" 'exit $?' 3209 3210 if test -n "$stripme" && test -n "$old_striplib"; then | 3204 3205 func_show_eval "$install_prog \$file \$oldlib" 'exit $?' 3206 3207 if test -n "$stripme" && test -n "$old_striplib"; then |
3211 func_show_eval "$old_striplib $tool_oldlib" 'exit $?' | 3208 func_show_eval "$old_striplib $oldlib" 'exit $?' |
3212 fi 3213 3214 # Do each command in the postinstall commands. 3215 func_execute_cmds "$old_postinstall_cmds" 'exit $?' 3216 done 3217 3218 test -n "$future_libdirs" && \ 3219 func_warning "remember to run \`$progname --finish$future_libdirs'" --- 248 unchanged lines hidden (view full) --- 3468 *" -static "*) ;; 3469 *) 3470 case $host in 3471 # compiling the symbol table file with pic_flag works around 3472 # a FreeBSD bug that causes programs to crash when -lm is 3473 # linked before any other PIC object. But we must not use 3474 # pic_flag when linking with -static. The problem exists in 3475 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. | 3209 fi 3210 3211 # Do each command in the postinstall commands. 3212 func_execute_cmds "$old_postinstall_cmds" 'exit $?' 3213 done 3214 3215 test -n "$future_libdirs" && \ 3216 func_warning "remember to run \`$progname --finish$future_libdirs'" --- 248 unchanged lines hidden (view full) --- 3465 *" -static "*) ;; 3466 *) 3467 case $host in 3468 # compiling the symbol table file with pic_flag works around 3469 # a FreeBSD bug that causes programs to crash when -lm is 3470 # linked before any other PIC object. But we must not use 3471 # pic_flag when linking with -static. The problem exists in 3472 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. |
3476 *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) | 3473 *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) |
3477 pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; 3478 *-*-hpux*) 3479 pic_flag_for_symtable=" $pic_flag" ;; 3480 *) 3481 if test "X$my_pic_p" != Xno; then 3482 pic_flag_for_symtable=" $pic_flag" 3483 fi 3484 ;; --- 495 unchanged lines hidden (view full) --- 3980 exit 1 3981} 3982 3983# A function to encapsulate launching the target application 3984# Strips options in the --lt-* namespace from \$@ and 3985# launches target application with the remaining arguments. 3986func_exec_program () 3987{ | 3474 pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; 3475 *-*-hpux*) 3476 pic_flag_for_symtable=" $pic_flag" ;; 3477 *) 3478 if test "X$my_pic_p" != Xno; then 3479 pic_flag_for_symtable=" $pic_flag" 3480 fi 3481 ;; --- 495 unchanged lines hidden (view full) --- 3977 exit 1 3978} 3979 3980# A function to encapsulate launching the target application 3981# Strips options in the --lt-* namespace from \$@ and 3982# launches target application with the remaining arguments. 3983func_exec_program () 3984{ |
3988 case \" \$* \" in 3989 *\\ --lt-*) 3990 for lt_wr_arg 3991 do 3992 case \$lt_wr_arg in 3993 --lt-*) ;; 3994 *) set x \"\$@\" \"\$lt_wr_arg\"; shift;; 3995 esac 3996 shift 3997 done ;; 3998 esac | 3985 for lt_wr_arg 3986 do 3987 case \$lt_wr_arg in 3988 --lt-*) ;; 3989 *) set x \"\$@\" \"\$lt_wr_arg\"; shift;; 3990 esac 3991 shift 3992 done |
3999 func_exec_program_core \${1+\"\$@\"} 4000} 4001 4002 # Parse options 4003 func_parse_lt_options \"\$0\" \${1+\"\$@\"} 4004 4005 # Find the directory that this script lives in. 4006 thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\` --- 1051 unchanged lines hidden (view full) --- 5058 ;; 5059 esac 5060 5061 cat <<"EOF" 5062void lt_dump_script (FILE* f) 5063{ 5064EOF 5065 func_emit_wrapper yes | | 3993 func_exec_program_core \${1+\"\$@\"} 3994} 3995 3996 # Parse options 3997 func_parse_lt_options \"\$0\" \${1+\"\$@\"} 3998 3999 # Find the directory that this script lives in. 4000 thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\` --- 1051 unchanged lines hidden (view full) --- 5052 ;; 5053 esac 5054 5055 cat <<"EOF" 5056void lt_dump_script (FILE* f) 5057{ 5058EOF 5059 func_emit_wrapper yes | |
5066 $SED -n -e ' 5067s/^\(.\{79\}\)\(..*\)/\1\ 5068\2/ 5069h 5070s/\([\\"]\)/\\\1/g 5071s/$/\\n/ 5072s/\([^\n]*\).*/ fputs ("\1", f);/p 5073g 5074D' | 5060 $SED -e 's/\([\\"]\)/\\\1/g' \ 5061 -e 's/^/ fputs ("/' -e 's/$/\\n", f);/' 5062 |
5075 cat <<"EOF" 5076} 5077EOF 5078} 5079# end: func_emit_cwrapperexe_src 5080 5081# func_win32_import_lib_p ARG 5082# True if ARG is an import lib, as indicated by $file_magic_cmd --- 567 unchanged lines hidden (view full) --- 5650 -model|-arch|-isysroot|--sysroot) 5651 func_append compiler_flags " $arg" 5652 func_append compile_command " $arg" 5653 func_append finalize_command " $arg" 5654 prev=xcompiler 5655 continue 5656 ;; 5657 | 5063 cat <<"EOF" 5064} 5065EOF 5066} 5067# end: func_emit_cwrapperexe_src 5068 5069# func_win32_import_lib_p ARG 5070# True if ARG is an import lib, as indicated by $file_magic_cmd --- 567 unchanged lines hidden (view full) --- 5638 -model|-arch|-isysroot|--sysroot) 5639 func_append compiler_flags " $arg" 5640 func_append compile_command " $arg" 5641 func_append finalize_command " $arg" 5642 prev=xcompiler 5643 continue 5644 ;; 5645 |
5658 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ 5659 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) | 5646 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) |
5660 func_append compiler_flags " $arg" 5661 func_append compile_command " $arg" 5662 func_append finalize_command " $arg" 5663 case "$new_inherited_linker_flags " in 5664 *" $arg "*) ;; 5665 * ) func_append new_inherited_linker_flags " $arg" ;; 5666 esac 5667 continue --- 487 unchanged lines hidden (view full) --- 6155 save_deplibs="$deplibs" 6156 deplibs= 6157 fi 6158 6159 for deplib in $libs; do 6160 lib= 6161 found=no 6162 case $deplib in | 5647 func_append compiler_flags " $arg" 5648 func_append compile_command " $arg" 5649 func_append finalize_command " $arg" 5650 case "$new_inherited_linker_flags " in 5651 *" $arg "*) ;; 5652 * ) func_append new_inherited_linker_flags " $arg" ;; 5653 esac 5654 continue --- 487 unchanged lines hidden (view full) --- 6142 save_deplibs="$deplibs" 6143 deplibs= 6144 fi 6145 6146 for deplib in $libs; do 6147 lib= 6148 found=no 6149 case $deplib in |
6163 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ 6164 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) | 6150 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) |
6165 if test "$linkmode,$pass" = "prog,link"; then 6166 compile_deplibs="$deplib $compile_deplibs" 6167 finalize_deplibs="$deplib $finalize_deplibs" 6168 else 6169 func_append compiler_flags " $deplib" 6170 if test "$linkmode" = lib ; then 6171 case "$new_inherited_linker_flags " in 6172 *" $deplib "*) ;; --- 667 unchanged lines hidden (view full) --- 6840 lib_linked=no 6841 fi 6842 ;; 6843 relink) 6844 if test "$hardcode_direct" = yes && 6845 test "$hardcode_direct_absolute" = no; then 6846 add="$dir/$linklib" 6847 elif test "$hardcode_minus_L" = yes; then | 6151 if test "$linkmode,$pass" = "prog,link"; then 6152 compile_deplibs="$deplib $compile_deplibs" 6153 finalize_deplibs="$deplib $finalize_deplibs" 6154 else 6155 func_append compiler_flags " $deplib" 6156 if test "$linkmode" = lib ; then 6157 case "$new_inherited_linker_flags " in 6158 *" $deplib "*) ;; --- 667 unchanged lines hidden (view full) --- 6826 lib_linked=no 6827 fi 6828 ;; 6829 relink) 6830 if test "$hardcode_direct" = yes && 6831 test "$hardcode_direct_absolute" = no; then 6832 add="$dir/$linklib" 6833 elif test "$hardcode_minus_L" = yes; then |
6848 add_dir="-L$absdir" | 6834 add_dir="-L$dir" |
6849 # Try looking first in the location we're being installed to. 6850 if test -n "$inst_prefix_dir"; then 6851 case $libdir in 6852 [\\/]*) 6853 func_append add_dir " -L$inst_prefix_dir$libdir" 6854 ;; 6855 esac 6856 fi --- 468 unchanged lines hidden (view full) --- 7325 # 7326 # There are really only two kinds -- those that 7327 # use the current revision as the major version 7328 # and those that subtract age and use age as 7329 # a minor version. But, then there is irix 7330 # which has an extra 1 added just for fun 7331 # 7332 case $version_type in | 6835 # Try looking first in the location we're being installed to. 6836 if test -n "$inst_prefix_dir"; then 6837 case $libdir in 6838 [\\/]*) 6839 func_append add_dir " -L$inst_prefix_dir$libdir" 6840 ;; 6841 esac 6842 fi --- 468 unchanged lines hidden (view full) --- 7311 # 7312 # There are really only two kinds -- those that 7313 # use the current revision as the major version 7314 # and those that subtract age and use age as 7315 # a minor version. But, then there is irix 7316 # which has an extra 1 added just for fun 7317 # 7318 case $version_type in |
7333 # correct linux to gnu/linux during the next big refactor | |
7334 darwin|linux|osf|windows|none) 7335 func_arith $number_major + $number_minor 7336 current=$func_arith_result 7337 age="$number_minor" 7338 revision="$number_revision" 7339 ;; 7340 freebsd-aout|freebsd-elf|qnx|sunos) 7341 current="$number_major" --- 100 unchanged lines hidden (view full) --- 7442 verstring="$verstring_prefix$major.$iface:$verstring" 7443 done 7444 7445 # Before this point, $major must not contain `.'. 7446 major=.$major 7447 versuffix="$major.$revision" 7448 ;; 7449 | 7319 darwin|linux|osf|windows|none) 7320 func_arith $number_major + $number_minor 7321 current=$func_arith_result 7322 age="$number_minor" 7323 revision="$number_revision" 7324 ;; 7325 freebsd-aout|freebsd-elf|qnx|sunos) 7326 current="$number_major" --- 100 unchanged lines hidden (view full) --- 7427 verstring="$verstring_prefix$major.$iface:$verstring" 7428 done 7429 7430 # Before this point, $major must not contain `.'. 7431 major=.$major 7432 versuffix="$major.$revision" 7433 ;; 7434 |
7450 linux) # correct to gnu/linux during the next big refactor | 7435 linux) |
7451 func_arith $current - $age 7452 major=.$func_arith_result 7453 versuffix="$major.$age.$revision" 7454 ;; 7455 7456 osf) 7457 func_arith $current - $age 7458 major=.$func_arith_result --- 571 unchanged lines hidden (view full) --- 8030 8031 # All the library-specific variables (install_libdir is set above). 8032 library_names= 8033 old_library= 8034 dlname= 8035 8036 # Test again, we may have decided not to build it any more 8037 if test "$build_libtool_libs" = yes; then | 7436 func_arith $current - $age 7437 major=.$func_arith_result 7438 versuffix="$major.$age.$revision" 7439 ;; 7440 7441 osf) 7442 func_arith $current - $age 7443 major=.$func_arith_result --- 571 unchanged lines hidden (view full) --- 8015 8016 # All the library-specific variables (install_libdir is set above). 8017 library_names= 8018 old_library= 8019 dlname= 8020 8021 # Test again, we may have decided not to build it any more 8022 if test "$build_libtool_libs" = yes; then |
8038 # Remove ${wl} instances when linking with ld. 8039 # FIXME: should test the right _cmds variable. 8040 case $archive_cmds in 8041 *\$LD\ *) wl= ;; 8042 esac | |
8043 if test "$hardcode_into_libs" = yes; then 8044 # Hardcode the library paths 8045 hardcode_libdirs= 8046 dep_rpath= 8047 rpath="$finalize_rpath" 8048 test "$opt_mode" != relink && rpath="$compile_rpath$rpath" 8049 for libdir in $rpath; do 8050 if test -n "$hardcode_libdir_flag_spec"; then --- 14 unchanged lines hidden (view full) --- 8065 fi 8066 else 8067 eval flag=\"$hardcode_libdir_flag_spec\" 8068 func_append dep_rpath " $flag" 8069 fi 8070 elif test -n "$runpath_var"; then 8071 case "$perm_rpath " in 8072 *" $libdir "*) ;; | 8023 if test "$hardcode_into_libs" = yes; then 8024 # Hardcode the library paths 8025 hardcode_libdirs= 8026 dep_rpath= 8027 rpath="$finalize_rpath" 8028 test "$opt_mode" != relink && rpath="$compile_rpath$rpath" 8029 for libdir in $rpath; do 8030 if test -n "$hardcode_libdir_flag_spec"; then --- 14 unchanged lines hidden (view full) --- 8045 fi 8046 else 8047 eval flag=\"$hardcode_libdir_flag_spec\" 8048 func_append dep_rpath " $flag" 8049 fi 8050 elif test -n "$runpath_var"; then 8051 case "$perm_rpath " in 8052 *" $libdir "*) ;; |
8073 *) func_append perm_rpath " $libdir" ;; | 8053 *) func_apped perm_rpath " $libdir" ;; |
8074 esac 8075 fi 8076 done 8077 # Substitute the hardcoded libdirs into the rpath. 8078 if test -n "$hardcode_libdir_separator" && 8079 test -n "$hardcode_libdirs"; then 8080 libdir="$hardcode_libdirs" | 8054 esac 8055 fi 8056 done 8057 # Substitute the hardcoded libdirs into the rpath. 8058 if test -n "$hardcode_libdir_separator" && 8059 test -n "$hardcode_libdirs"; then 8060 libdir="$hardcode_libdirs" |
8081 eval "dep_rpath=\"$hardcode_libdir_flag_spec\"" | 8061 if test -n "$hardcode_libdir_flag_spec_ld"; then 8062 eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" 8063 else 8064 eval dep_rpath=\"$hardcode_libdir_flag_spec\" 8065 fi |
8082 fi 8083 if test -n "$runpath_var" && test -n "$perm_rpath"; then 8084 # We should set the runpath_var. 8085 rpath= 8086 for dir in $perm_rpath; do 8087 func_append rpath "$dir:" 8088 done 8089 eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" --- 1073 unchanged lines hidden (view full) --- 9163 done 9164 func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" 9165 func_append oldobjs " $gentop/$newobj" 9166 ;; 9167 *) func_append oldobjs " $obj" ;; 9168 esac 9169 done 9170 fi | 8066 fi 8067 if test -n "$runpath_var" && test -n "$perm_rpath"; then 8068 # We should set the runpath_var. 8069 rpath= 8070 for dir in $perm_rpath; do 8071 func_append rpath "$dir:" 8072 done 8073 eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" --- 1073 unchanged lines hidden (view full) --- 9147 done 9148 func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" 9149 func_append oldobjs " $gentop/$newobj" 9150 ;; 9151 *) func_append oldobjs " $obj" ;; 9152 esac 9153 done 9154 fi |
9171 func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 9172 tool_oldlib=$func_to_tool_file_result | |
9173 eval cmds=\"$old_archive_cmds\" 9174 9175 func_len " $cmds" 9176 len=$func_len_result 9177 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then 9178 cmds=$old_archive_cmds 9179 elif test -n "$archiver_list_spec"; then 9180 func_verbose "using command file archive linking..." --- 93 unchanged lines hidden (view full) --- 9274 output="$output_objdir/$outputname"i 9275 # Replace all uninstalled libtool libraries with the installed ones 9276 newdependency_libs= 9277 for deplib in $dependency_libs; do 9278 case $deplib in 9279 *.la) 9280 func_basename "$deplib" 9281 name="$func_basename_result" | 9155 eval cmds=\"$old_archive_cmds\" 9156 9157 func_len " $cmds" 9158 len=$func_len_result 9159 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then 9160 cmds=$old_archive_cmds 9161 elif test -n "$archiver_list_spec"; then 9162 func_verbose "using command file archive linking..." --- 93 unchanged lines hidden (view full) --- 9256 output="$output_objdir/$outputname"i 9257 # Replace all uninstalled libtool libraries with the installed ones 9258 newdependency_libs= 9259 for deplib in $dependency_libs; do 9260 case $deplib in 9261 *.la) 9262 func_basename "$deplib" 9263 name="$func_basename_result" |
9282 func_resolve_sysroot "$deplib" 9283 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result` | 9264 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` |
9284 test -z "$libdir" && \ 9285 func_fatal_error "\`$deplib' is not a valid libtool archive" 9286 func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name" 9287 ;; 9288 -L*) 9289 func_stripname -L '' "$deplib" 9290 func_replace_sysroot "$func_stripname_result" 9291 func_append newdependency_libs " -L$func_replace_sysroot_result" --- 364 unchanged lines hidden --- | 9265 test -z "$libdir" && \ 9266 func_fatal_error "\`$deplib' is not a valid libtool archive" 9267 func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name" 9268 ;; 9269 -L*) 9270 func_stripname -L '' "$deplib" 9271 func_replace_sysroot "$func_stripname_result" 9272 func_append newdependency_libs " -L$func_replace_sysroot_result" --- 364 unchanged lines hidden --- |