On 28 Dec, 2014, at 09:08 , John D. Baker <[email protected]> wrote:
> There seemed to be a "CFLAGS.<sourcefile>" construct to permit per-source
> setting of CFLAGS contents, but it had no effect when I tried it. Perhaps
> I put it in the wrong place?
>
> Hints?
I always have trouble figuring this out on the rare occasions I've had to
do it, but I think setting the flag in COPTS might work better. The last
one I did worked like this:
.if ${MACHINE_ARCH} == "riscv64"
COPTS.asan_allocator2.cc += -O0
COPTS.sanitizer_netbsd.cc += -O0
.endif
Dennis Ferguson