9c, 9l: accept CC9FLAGS from config

Also, if CC9FLAGS includes -fsanitize=address (ASAN),
predefine PLAN9PORT_ASAN for use by programs that need
to know (mainly libthread).

The 9c script used to have a variable called ngflags, which
was ccflags except -g (ng stood for "no g"), but nothing needs
it split out anymore, so simplify to just ccflags.
This commit is contained in:
Russ Cox 2020-05-17 20:07:52 -04:00
parent 154140a22b
commit 9444b8e4bc
3 changed files with 39 additions and 18 deletions

View file

@ -89,6 +89,15 @@ If
contains a line
.B WSYSTYPE=nowsys
then the system is built without using X11.
.B LOCAL.config
may also list settings for
.B CC9
(the host C compiler)
and
.B CC9FLAGS
(any additional flags to pass to the compiler).
Values more complex than single words should be quoted
with single quotes.
.PP
On most Linux systems, the X11 header packages need to be installed
to build using X11. On Debian. the required packages are