[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-man
Subject:    Re: [PATCH 00/45] Add LIBRARY section (based on FreeBSD manual pages)
From:       Florian Weimer <fweimer () redhat ! com>
Date:       2021-09-17 8:21:02
Message-ID: 87tuijhatt.fsf () oldenburg ! str ! redhat ! com
[Download RAW message or body]

* Eugene Syromyatnikov:

> I think, the split is codified in the standards[1][2][3][4][5] (so,
> -lm/-lrt are expected to be supported by the compiler, per my
> understanding, and providing the necessary -l* option will always
> work, because it's codified in C standard, contrary to not providing
> one)

The C standard does not specify compiler invocations.

POSIX specifies some of these libraries and says that you have to link
with, e.g., -lm if you use math functions.  It also says that the
same functions may be available without -lm.

But some of these libraries are not in POSIX.  dlopen, for example,
should be usable without -ldl according to POSIX, but in glibc before
2.34, it is not.

And yes, in glibc 2.34, there are libdl.a etc. files, so that the old
-ldl etc. options still work.

Thanks,
Florian

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic