On 20/12/2017 20:00, Aaron M. Ucko wrote:
I haven't looked at motif's build system, but I see that patman's makefile doesn't honor CFLAGS or CXXFLAGS (which would be the normal means of injecting relevant flags here), just CPPFLAGS (which is supposed to be for the C PreProcessor). It should properly consult both CPPFLAGS and CXXFLAGS, and distribute its own flags across these two variables as appropriate.
Thanks for that tip! It seems upstream had CPPFLAGS and CXXFLAGS confused. Correcting that [1] made blhc happy, and I was able to revert my previous workaround.
Andreas, ping me if you want that uploaded.As far as I can tell, hardening flags are being passed correctly in motif though.
[1] https://anonscm.debian.org/cgit/debian-med/patman.git/commit/?id=3e830b572446d24e7163cb183d30e2ce402976bb