Re: [PATCH 00/45] Add LIBRARY section (based on FreeBSD manual pages)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* 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




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux