summaryrefslogtreecommitdiff
path: root/sys/dev/microcode/run/microcode.h
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>2023-02-07 04:53:54 +0000
committermrg <mrg@NetBSD.org>2023-02-07 04:53:54 +0000
commit3d82cc8bd8e60613160774f57af5f0b3687935a2 (patch)
tree48fff9769440c7cb93e9acd85ead7a01f43b9a6a /sys/dev/microcode/run/microcode.h
parentd118660e2070df23af786b6e3a2788a5941b82ef (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