diff options
| author | mrg <mrg@NetBSD.org> | 2023-02-07 04:53:54 +0000 |
|---|---|---|
| committer | mrg <mrg@NetBSD.org> | 2023-02-07 04:53:54 +0000 |
| commit | 3d82cc8bd8e60613160774f57af5f0b3687935a2 (patch) | |
| tree | 48fff9769440c7cb93e9acd85ead7a01f43b9a6a /sys/dev/microcode/run/microcode.h | |
| parent | d118660e2070df23af786b6e3a2788a5941b82ef (diff) | |
fix code attempting to skip adding "-g" if "-g*" already is used.
in bsd.lib.mk there's a check for "MKDEBUG != no" that will add
-g to CFLAGS (maybe) and to CSHLIBFLAGS (always), given that it
isn't in CFLAGS already.. except the conditional is "||" instead
of "&&" and since the MKDEBUG/NODEBUG checks pass, the CFLAGS
check isn't even performed.
additionally, check CXXFLAGS as well as CFLAGS.
this fixes the attempt to use "-g1" in the llvmrt build, which
fails because the compile lines end up being "... -g1 .. -g ..",
(the "-g" comes from the CSHLIBFLAGS variable in that case.)
this reduces the size of llvm-enabled gallium debug by ~1.5GiB
on amd64.
Diffstat (limited to 'sys/dev/microcode/run/microcode.h')
0 files changed, 0 insertions, 0 deletions
