summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-08-01 00:30:19 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-08-01 00:30:19 +0200
commit68b5b2691e7a8c1027f7fb76dad7976c3502cbfe (patch)
tree9463ad3669dfe0ff6677ccd19a1c52f4474cb108
parenta39ecb3fac78750621536ed3ff4e65fd19064277 (diff)
downloadcurl-bagder/checksrc-tests-examples.tar.gz
checksrc: invoke script with -D to find .checksrc properbagder/checksrc-tests-examples
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
-rw-r--r--docs/examples/Makefile.am2
-rw-r--r--tests/libtest/Makefile.am2
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