Sidebar on include.h (was getting rid of mkproto.sh from Samba3

tridge at samba.org tridge at samba.org
Mon Jun 4 22:08:51 GMT 2007


David,

 >    A customer of mine now occasionally uses -MMD, .d files and a
 > script to prune out extra #include files when they're using gcc,
 > and lint|grep "unneeded" when they're using a vendor compiler.

or use script/minimal_includes.pl, which does it very neatly, and
doesn't depend on gcc. It also knows about marking an #include file as
definately being needed, so you don't remove it just because it's not
needed on the platform you happen to be on.

Cheers, Tridge


More information about the samba-technical mailing list