Honouring LDFLAGS, CXX and CXXFLAGS from environment (makefile)
I was using ansifilter on Gentoo arm to try and decipher some logs with ansi codes, works great, thanks! However, I stumbled on a QA check that portage complains about and found a bug listed here;
I sent a patch to the bug but then realised some other things like CXX and CXXFLAGS looked a little funny and had to be specified in the ebuild, swapping CC which is usually used for c for CXX. I changed this again to try and make the ebuild a little cleaner and inherit the CXXFLAGS from environment too.
I hope at least to consider including the first patch if possible as that would fix the QA warning, hopefully the second one as that would fix the bug and make the ebuild cleaner too, but I don't know if it changes too much. I tested the build and works for me both patches.
Please find attached the patches for consideration. Thanks.
just the ldflags ansifilter-2.16-ldflags.patch
with other makefile changes ansifilter-2.16-makefile.patch