Subject: bin/10650: historical use of LDSTATIC is not documented.
To: None <email@example.com>
From: None <firstname.lastname@example.org>
Date: 07/21/2000 13:11:15
>Synopsis: historical use of LDSTATIC is not documented.
>Arrival-Date: Fri Jul 21 13:12:00 PDT 2000
>Originator: Chris Demetriou
>Release: NetBSD-current as of 2000-07-21.
The historical behaviour/use of LDSTATIC doesn't seem to be
Historically (and currently), if you set LDSTATIC to a certain
value in bsd.own.mk and now mk.conf, that value would be used
to control static linking of programs.
No setting would allow programs to assume their defaults,
but setting to empty would cause everything to be linked dynamically
(if dynamic linking was supported), and setting it to -static
would cause everything to be linked statically.
you can see entries in e.g. bin/Makefile.inc and sbin/Makefile.inc
which bear this out.
However, looking for documentation of this behaviour, none was found.
Look for documentation of the usage of LDSTATIC.
add an entry in share/mk/bsd.README to describe the use. The description
above would be a good start.