With the wrappers I can use lazutils and related units. The wrappers are only needed because I'm not going to back off on my compile flags.
I don't fully understand. What is wrong in adding a "Other unit files" (-Fu) path for the compiler?
Adding '-Fu' is not the issue. That works fine.
The issue is when I use the lazarus units (and not when I use RTL/FCL units) is that get messages about things not being initialized, parameters not being used, and so forth which cause compilation to abort, which for my own stuff I want so I can correct my code.
As I said, I don't need to do that with RTL/FCL units, I don't get the warnings/notes/hints issued for them when I use them.
Putting the push/suppressions/use unit/pop in the uses clause around individual units does not work correctly, hence a wrapper like the following in my own units folder earlier in the search path:
// lazutf8.pp
{$push}
{$warnings off}
{$hints off}
{$notes off}
{$include lazutf8.pas}
{$pop}
Any units are by
lazutf8 or whatever other unit I'm doing that with are covered by those directives, so the compilation does not abort on them.
Like I said, using RTL/FCL units the compilation is not aborted, and when using my own units, I correct the faults in my own code to get them to compile and be used.