http://www.redhat.com/archives/fedora-maintainers/2007-January/msg00339.html kinput2 is built without $RPM_OPT_FLAGS (no compiler security features, more or less useless debuginfo). Fix attached.
Created attachment 147606 [details] Use $RPM_OPT_FLAGS
Why don't you just patch out imake to generate proper Makefile that contains $RPM_OPT_FLAGS?
Other tools such as autofoo aren't patched to do that either. Granted, they respect CFLAGS and friends from environment, so it's not quite the same thing. imake maintainers, what do you think about the change proposed in comment 2?
Kristian, could please answer this question. Isn't imake legacy stuff anyway?
I agree with comment #3, we're not patching imake (which very much is dying) to add RPM specific flags. What we can do is to fix the Imakefiles or the generated makefiles as the patch does, and longer term work with the upstream projects to allow custom compiler flags, or even better move away from imake.
I meant to have a custom compiler flags rather than just having a special hack since we could usually easily modify it in autotools by giving it before running configure. I don't like to move away from imake since this software is really a dead project in upstream. Ok, thank you for your info. will apply comment #1 then.
Fixed in v3.1-31.fc7.