checksrc: pass on -D so the whitelists are found correctly

This commit is contained in:
Daniel Stenberg 2016-04-18 20:10:52 +02:00
parent fb823d24f1
commit a542536cf6
2 changed files with 4 additions and 3 deletions

View file

@ -130,7 +130,8 @@ endif
# ignore tool_hugehelp.c since it is generated source code and it plays
# by slightly different rules!
checksrc:
@PERL@ $(top_srcdir)/lib/checksrc.pl -W$(top_srcdir)/src/tool_hugehelp.c $(top_srcdir)/src/*.[ch]
@PERL@ $(top_srcdir)/lib/checksrc.pl -D$(srcdir) \
-W$(srcdir)/tool_hugehelp.c $(srcdir)/*.[ch]
if CURLDEBUG
# for debug builds, we scan the sources on all regular make invokes