Problems with ld, libc, and "struct stat"
jbe-mlist at magnetkern.de
Wed Oct 16 12:25:43 UTC 2019
On Wed, 16 Oct 2019 13:44:25 +0200
David Demelier <markand at malikania.fr> wrote:
> Le 16/10/2019 à 13:15, Jan Behrens a écrit :
> > [...]
> > When I search the man page for "cc" (clang - the Clang C, C++, and
> > Objective-C compiler), I even do not find any "-shared" option at all.
> -shared is a linker option, it's documented in gcc but basically clang
> is usually retro-compatible with most of the GCC option. In fact,
> -shared is just a shortcut to pass the appropriate shared arguments to
> the underlying linker in that case -Bshareable (but may add additional
> options as well).
Can I rely on "-shared" being available also in future versions of
clang/cc? Or is this a deprecated "gcc compatibility" option?
It is listed on llvm.org as command line option:
But it does not come with any description on that website.
Building shared libraries is an important feature, so I'm a bit
surprised there is no documentation on on the "cc -shared" invocation
(other than GCC's documentation), or maybe I'm just looking at the
wrong places? Maybe you or someone else knows where else could I find
any documentation on this?
More information about the freebsd-questions