mirror of
https://github.com/moparisthebest/curl
synced 2025-03-01 01:41:50 -05:00
as generated with libtool 1.4.0a
This commit is contained in:
parent
6ef11f0b13
commit
71794da389
70
ltmain.sh
70
ltmain.sh
@ -55,8 +55,8 @@ modename="$progname"
|
|||||||
# Constants.
|
# Constants.
|
||||||
PROGRAM=ltmain.sh
|
PROGRAM=ltmain.sh
|
||||||
PACKAGE=libtool
|
PACKAGE=libtool
|
||||||
VERSION=1.4
|
VERSION=1.4.0a
|
||||||
TIMESTAMP=" (1.920 2001/04/24 23:26:18)"
|
TIMESTAMP=" (1.922.2.27 2001/08/18 22:31:47)"
|
||||||
|
|
||||||
default_mode=
|
default_mode=
|
||||||
help="Try \`$progname --help' for more information."
|
help="Try \`$progname --help' for more information."
|
||||||
@ -202,6 +202,11 @@ if test -n "$prevopt"; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# If this variable is set in any of the actions, the command in it
|
||||||
|
# will be execed at the end. This prevents here-documents from being
|
||||||
|
# left over by shells.
|
||||||
|
exec_cmd=
|
||||||
|
|
||||||
if test -z "$show_help"; then
|
if test -z "$show_help"; then
|
||||||
|
|
||||||
# Infer the operation mode.
|
# Infer the operation mode.
|
||||||
@ -615,6 +620,10 @@ compiler."
|
|||||||
# Now arrange that obj and lo_libobj become the same file
|
# Now arrange that obj and lo_libobj become the same file
|
||||||
$show "(cd $xdir && $LN_S $baseobj $libobj)"
|
$show "(cd $xdir && $LN_S $baseobj $libobj)"
|
||||||
if $run eval '(cd $xdir && $LN_S $baseobj $libobj)'; then
|
if $run eval '(cd $xdir && $LN_S $baseobj $libobj)'; then
|
||||||
|
# Unlock the critical section if it was locked
|
||||||
|
if test "$need_locks" != no; then
|
||||||
|
$run $rm "$lockfile"
|
||||||
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
error=$?
|
error=$?
|
||||||
@ -1031,6 +1040,18 @@ compiler."
|
|||||||
# These systems don't actually have a C library (as such)
|
# These systems don't actually have a C library (as such)
|
||||||
test "X$arg" = "X-lc" && continue
|
test "X$arg" = "X-lc" && continue
|
||||||
;;
|
;;
|
||||||
|
*-*-openbsd*)
|
||||||
|
# Do not include libc due to us having libc/libc_r.
|
||||||
|
test "X$arg" = "X-lc" && continue
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
if test "X$arg" = "X-lc_r"; then
|
||||||
|
case $host in
|
||||||
|
*-*-openbsd*)
|
||||||
|
# Do not include libc_r directly, use -pthread flag.
|
||||||
|
continue
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
deplibs="$deplibs $arg"
|
deplibs="$deplibs $arg"
|
||||||
@ -2408,6 +2429,9 @@ compiler."
|
|||||||
*-*-netbsd*)
|
*-*-netbsd*)
|
||||||
# Don't link with libc until the a.out ld.so is fixed.
|
# Don't link with libc until the a.out ld.so is fixed.
|
||||||
;;
|
;;
|
||||||
|
*-*-openbsd*)
|
||||||
|
# Do not include libc due to us having libc/libc_r.
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
# Add libc to deplibs on all other systems if necessary.
|
# Add libc to deplibs on all other systems if necessary.
|
||||||
if test $build_libtool_need_lc = "yes"; then
|
if test $build_libtool_need_lc = "yes"; then
|
||||||
@ -3287,27 +3311,25 @@ extern \"C\" {
|
|||||||
#undef lt_preloaded_symbols
|
#undef lt_preloaded_symbols
|
||||||
|
|
||||||
#if defined (__STDC__) && __STDC__
|
#if defined (__STDC__) && __STDC__
|
||||||
# define lt_ptr_t void *
|
# define lt_ptr void *
|
||||||
#else
|
#else
|
||||||
# define lt_ptr_t char *
|
# define lt_ptr char *
|
||||||
# define const
|
# define const
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* The mapping between symbol names and symbols. */
|
/* The mapping between symbol names and symbols. */
|
||||||
const struct {
|
const struct {
|
||||||
const char *name;
|
const char *name;
|
||||||
lt_ptr_t address;
|
lt_ptr address;
|
||||||
}
|
}
|
||||||
lt_preloaded_symbols[] =
|
lt_preloaded_symbols[] =
|
||||||
{\
|
{\
|
||||||
"
|
"
|
||||||
|
|
||||||
sed -n -e 's/^: \([^ ]*\) $/ {\"\1\", (lt_ptr_t) 0},/p' \
|
eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
|
||||||
-e 's/^. \([^ ]*\) \([^ ]*\)$/ {"\2", (lt_ptr_t) \&\2},/p' \
|
|
||||||
< "$nlist" >> "$output_objdir/$dlsyms"
|
|
||||||
|
|
||||||
$echo >> "$output_objdir/$dlsyms" "\
|
$echo >> "$output_objdir/$dlsyms" "\
|
||||||
{0, (lt_ptr_t) 0}
|
{0, (lt_ptr) 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
/* This works around a problem in FreeBSD linker */
|
/* This works around a problem in FreeBSD linker */
|
||||||
@ -3618,8 +3640,9 @@ else
|
|||||||
|
|
||||||
# relink executable if necessary
|
# relink executable if necessary
|
||||||
if test -n \"\$relink_command\"; then
|
if test -n \"\$relink_command\"; then
|
||||||
if (eval \$relink_command); then :
|
if relink_command_output=\`eval \$relink_command 2>&1\`; then :
|
||||||
else
|
else
|
||||||
|
$echo \"\$relink_command_output\" >&2
|
||||||
$rm \"\$progdir/\$file\"
|
$rm \"\$progdir/\$file\"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@ -4368,11 +4391,10 @@ relink_command=\"$relink_command\""
|
|||||||
if test -n "$current_libdirs"; then
|
if test -n "$current_libdirs"; then
|
||||||
# Maybe just do a dry run.
|
# Maybe just do a dry run.
|
||||||
test -n "$run" && current_libdirs=" -n$current_libdirs"
|
test -n "$run" && current_libdirs=" -n$current_libdirs"
|
||||||
exec $SHELL $0 --finish$current_libdirs
|
exec_cmd='$SHELL $0 --finish$current_libdirs'
|
||||||
exit 1
|
else
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
# libtool finish mode
|
# libtool finish mode
|
||||||
@ -4575,11 +4597,8 @@ relink_command=\"$relink_command\""
|
|||||||
LANG="$save_LANG"; export LANG
|
LANG="$save_LANG"; export LANG
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Now actually exec the command.
|
# Now prepare to actually exec the command.
|
||||||
eval "exec \$cmd$args"
|
exec_cmd='"$cmd"$args'
|
||||||
|
|
||||||
$echo "$modename: cannot exec \$cmd$args"
|
|
||||||
exit 1
|
|
||||||
else
|
else
|
||||||
# Display what would be done.
|
# Display what would be done.
|
||||||
if test -n "$shlibpath_var"; then
|
if test -n "$shlibpath_var"; then
|
||||||
@ -4744,11 +4763,18 @@ relink_command=\"$relink_command\""
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
$echo "$modename: invalid operation mode \`$mode'" 1>&2
|
if test -z "$exec_cmd"; then
|
||||||
$echo "$generic_help" 1>&2
|
$echo "$modename: invalid operation mode \`$mode'" 1>&2
|
||||||
exit 1
|
$echo "$generic_help" 1>&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi # test -z "$show_help"
|
fi # test -z "$show_help"
|
||||||
|
|
||||||
|
if test -n "$exec_cmd"; then
|
||||||
|
eval exec $exec_cmd
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# We need to display help for each of the modes.
|
# We need to display help for each of the modes.
|
||||||
case $mode in
|
case $mode in
|
||||||
"") $echo \
|
"") $echo \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user