From faeec840f37715c942dc9623b422284835c9218f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 1 Aug 2020 00:30:19 +0200 Subject: checksrc: invoke script with -D to find .checksrc proper Without the -D command line option, checksrc.pl won't know which directory to load the ".checksrc" file from when building out of the source tree. Reported-by: Marcel Raad Fixes #5715 Closes #5755 --- docs/examples/Makefile.am | 2 +- tests/libtest/Makefile.am | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/examples/Makefile.am b/docs/examples/Makefile.am index db4d12337..44372a19c 100644 --- a/docs/examples/Makefile.am +++ b/docs/examples/Makefile.am @@ -67,4 +67,4 @@ CS_1 = CS_ = $(CS_0) checksrc: - $(CHECKSRC)(@PERL@ $(top_srcdir)/lib/checksrc.pl $(srcdir)/*.c) + $(CHECKSRC)(@PERL@ $(top_srcdir)/lib/checksrc.pl -D$(srcdir) $(srcdir)/*.c) diff --git a/tests/libtest/Makefile.am b/tests/libtest/Makefile.am index e87a36306..07fdd9b7b 100644 --- a/tests/libtest/Makefile.am +++ b/tests/libtest/Makefile.am @@ -137,7 +137,7 @@ CS_1 = CS_ = $(CS_0) checksrc: - $(CHECKSRC)@PERL@ $(top_srcdir)/lib/checksrc.pl $(srcdir)/*.[ch] + $(CHECKSRC)@PERL@ $(top_srcdir)/lib/checksrc.pl -D$(srcdir) $(srcdir)/*.[ch] if CURLDEBUG # for debug builds, we scan the sources on all regular make invokes -- cgit v1.2.1