ldconfig(8): nostd/-s does nothing

(cherry picked from commit b828161d12)
This commit is contained in:
Konstantin Belousov 2021-11-19 07:21:21 +02:00
parent 00558493b7
commit 46e032b0b1
2 changed files with 5 additions and 9 deletions

View file

@ -43,7 +43,7 @@
.Sh SYNOPSIS
.Nm
.Op Fl 32
.Op Fl Rimrsv
.Op Fl Rimrv
.Op Fl f Ar hints_file
.Op Ar directory | Ar
.Sh DESCRIPTION
@ -128,10 +128,6 @@ on the standard output.
The hints file is not modified.
.Pp
Scan and print all libraries found on the directories list.
.It Fl s
Do not scan the built-in system directory
.Pq Dq /usr/lib
for shared libraries.
.It Fl v
Switch on verbose mode.
.El

View file

@ -60,9 +60,9 @@ main(int argc, char **argv)
{
const char *hints_file;
int c;
bool is_32, is_soft, justread, merge, nostd, rescan, verbose;
bool is_32, is_soft, justread, merge, rescan, verbose;
is_32 = is_soft = justread = merge = nostd = rescan = verbose = false;
is_32 = is_soft = justread = merge = rescan = verbose = false;
while (argc > 1) {
if (strcmp(argv[1], "-aout") == 0) {
@ -109,7 +109,7 @@ main(int argc, char **argv)
justread = true;
break;
case 's':
nostd = true;
/* was nostd */
break;
case 'v':
verbose = true;
@ -132,7 +132,7 @@ static void
usage(void)
{
fprintf(stderr,
"usage: ldconfig [-32] [-elf] [-Rimrsv] [-f hints_file] "
"usage: ldconfig [-32] [-elf] [-Rimrv] [-f hints_file] "
"[directory | file ...]\n");
exit(1);
}