From: Daniel Stenberg Date: Mon, 18 Apr 2016 18:10:52 +0000 (+0200) Subject: checksrc: pass on -D so the whitelists are found correctly X-Git-Tag: curl-7_49_0~127 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a542536cf6e8f2eab0788486a60f810a58cb3b3e;p=thirdparty%2Fcurl.git checksrc: pass on -D so the whitelists are found correctly --- diff --git a/lib/Makefile.am b/lib/Makefile.am index 1e0fda3870..7b3c585acd 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -146,8 +146,8 @@ libcurl_la_SOURCES = $(CSOURCES) $(HHEADERS) libcurlu_la_SOURCES = $(CSOURCES) $(HHEADERS) checksrc: - @PERL@ $(top_srcdir)/lib/checksrc.pl -W$(top_srcdir)/lib/curl_config.h \ - $(top_srcdir)/lib/*.[ch] $(top_srcdir)/lib/vauth/*.[ch] $(top_srcdir)/lib/vtls/*.[ch] + @PERL@ $(srcdir)/checksrc.pl -D$(srcdir) -W$(srcdir)/curl_config.h \ + $(srcdir)/*.[ch] $(srcdir)/vauth/*.[ch] $(srcdir)/vtls/*.[ch] if CURLDEBUG # for debug builds, we scan the sources on all regular make invokes diff --git a/src/Makefile.am b/src/Makefile.am index 28df6709ed..79c4f4f10f 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -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