]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
checksrc: invoke script with -D to find .checksrc proper
authorDaniel Stenberg <daniel@haxx.se>
Fri, 31 Jul 2020 22:30:19 +0000 (00:30 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 1 Aug 2020 08:47:55 +0000 (10:47 +0200)
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
tests/libtest/Makefile.am

index db4d123374f30756838f4a0ccb6d2f02c13e9a3b..44372a19c5b029915ce0d51b7d4d28ea6c80a07b 100644 (file)
@@ -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)
index e87a36306c387c231f21a66f1b31034b1555a4b0..07fdd9b7bde4de2fd63ee1f9b4ca208a1757e4f5 100644 (file)
@@ -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