Subject: bin/10650: historical use of LDSTATIC is not documented.
To: None <gnats-bugs@gnats.netbsd.org>
From: None <cgd@sibyte.com>
List: netbsd-bugs
Date: 07/21/2000 13:11:15
>Number:         10650
>Category:       bin
>Synopsis:       historical use of LDSTATIC is not documented.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 21 13:12:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Chris Demetriou
>Release:        NetBSD-current as of 2000-07-21.
>Organization:
>Environment:
irrelevant.
>Description:
The historical behaviour/use of LDSTATIC doesn't seem to be
documented anywhere.

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.
>How-To-Repeat:
Look for documentation of the usage of LDSTATIC.
>Fix:
add an entry in share/mk/bsd.README to describe the use.  The description
above would be a good start.
>Release-Note:
>Audit-Trail:
>Unformatted: