Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
71794da3
Commit
71794da3
authored
23 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
as generated with libtool 1.4.0a
parent
6ef11f0b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ltmain.sh
+48
-22
48 additions, 22 deletions
ltmain.sh
with
48 additions
and
22 deletions
ltmain.sh
+
48
−
22
View file @
71794da3
...
...
@@ -55,8 +55,8 @@ modename="$progname"
# Constants.
PROGRAM
=
ltmain.sh
PACKAGE
=
libtool
VERSION
=
1.4
TIMESTAMP
=
" (1.92
0
2001/0
4/24 23:26:18
)"
VERSION
=
1.4
.0a
TIMESTAMP
=
" (1.92
2.2.27
2001/0
8/18 22:31:47
)"
default_mode
=
help
=
"Try
\`
$progname
--help' for more information."
...
...
@@ -202,6 +202,11 @@ if test -n "$prevopt"; then
exit
1
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
# Infer the operation mode.
...
...
@@ -615,6 +620,10 @@ compiler."
# Now arrange that obj and lo_libobj become the same file
$show
"(cd
$xdir
&&
$LN_S
$baseobj
$libobj
)"
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
else
error
=
$?
...
...
@@ -1031,6 +1040,18 @@ compiler."
# These systems don't actually have a C library (as such)
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
fi
deplibs
=
"
$deplibs
$arg
"
...
...
@@ -2408,6 +2429,9 @@ compiler."
*
-
*
-netbsd
*
)
# 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.
if
test
$build_libtool_need_lc
=
"yes"
;
then
...
...
@@ -3287,27 +3311,25 @@ extern \"C\" {
#undef lt_preloaded_symbols
#if defined (__STDC__) && __STDC__
# define lt_ptr
_t
void *
# define lt_ptr void *
#else
# define lt_ptr
_t
char *
# define lt_ptr char *
# define const
#endif
/* The mapping between symbol names and symbols. */
const struct {
const char *name;
lt_ptr
_t
address;
lt_ptr address;
}
lt_preloaded_symbols[] =
{
\
"
sed
-n
-e
's/^: \([^ ]*\) $/ {\"\1\", (lt_ptr_t) 0},/p'
\
-e
's/^. \([^ ]*\) \([^ ]*\)$/ {"\2", (lt_ptr_t) \&\2},/p'
\
<
"
$nlist
"
>>
"
$output_objdir
/
$dlsyms
"
eval
"
$global_symbol_to_c_name_address
"
<
"
$nlist
"
>>
"
$output_objdir
/
$dlsyms
"
$echo
>>
"
$output_objdir
/
$dlsyms
"
"
\
{0, (lt_ptr
_t
) 0}
{0, (lt_ptr) 0}
};
/* This works around a problem in FreeBSD linker */
...
...
@@ -3618,8 +3640,9 @@ else
# relink executable if necessary
if test -n
\"\$
relink_command
\"
; then
if
(
eval
\$
relink_command
)
; then :
if
relink_command_output=
\`
eval
\$
relink_command
2>&1
\`
; then :
else
$echo
\"\$
relink_command_output
\"
>&2
$rm
\"\$
progdir/
\$
file
\"
exit 1
fi
...
...
@@ -4368,11 +4391,10 @@ relink_command=\"$relink_command\""
if
test
-n
"
$current_libdirs
"
;
then
# Maybe just do a dry run.
test
-n
"
$run
"
&&
current_libdirs
=
" -n
$current_libdirs
"
exec
$SHELL
$0
--finish
$current_libdirs
exit
1
exec_cmd
=
'$SHELL $0 --finish$current_libdirs'
else
exit
0
fi
exit
0
;;
# libtool finish mode
...
...
@@ -4575,11 +4597,8 @@ relink_command=\"$relink_command\""
LANG
=
"
$save_LANG
"
;
export
LANG
fi
# Now actually exec the command.
eval
"exec
\$
cmd
$args
"
$echo
"
$modename
: cannot exec
\$
cmd
$args
"
exit
1
# Now prepare to actually exec the command.
exec_cmd
=
'"$cmd"$args'
else
# Display what would be done.
if
test
-n
"
$shlibpath_var
"
;
then
...
...
@@ -4744,11 +4763,18 @@ relink_command=\"$relink_command\""
;;
esac
$echo
"
$modename
: invalid operation mode
\`
$mode
'"
1>&2
$echo
"
$generic_help
"
1>&2
exit
1
if
test
-z
"
$exec_cmd
"
;
then
$echo
"
$modename
: invalid operation mode
\`
$mode
'"
1>&2
$echo
"
$generic_help
"
1>&2
exit
1
fi
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.
case
$mode
in
""
)
$echo
\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment