]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Autoconf: Avoid incorrectly include the libpcap's config.h
authorFrancois-Xavier Le Bail <[email protected]>
Wed, 2 Apr 2025 14:16:51 +0000 (16:16 +0200)
committerfxlb <[email protected]>
Fri, 4 Apr 2025 05:21:09 +0000 (05:21 +0000)
Fix the problem when configure like following is done:
./configure CFLAGS='-I../libpcap -I.'
This gives:
CCOPT =  -I../libpcap -I. -W -Wall [...]

See also the GitHub bug report #1313.

In Makefile.in, there is:
INCLS = -I. @V_INCLS@

Put $(INCLS) first in FULL_CFLAGS.

Makefile.in

index 1aba578ec789e6aea75d6531ecf7d31638dca7a0..e265784c6770ee45c5033a66c7c5aea88fcdd42d 100644 (file)
@@ -49,7 +49,7 @@ DEFS = @DEFS@ @CPPFLAGS@ @V_DEFS@
 
 # Standard CFLAGS
 CFLAGS = @CFLAGS@
-FULL_CFLAGS = $(CCOPT) $(DEFS) $(INCLS) $(CFLAGS)
+FULL_CFLAGS = $(INCLS) $(CCOPT) $(DEFS) $(CFLAGS)
 
 # Standard LDFLAGS
 LDFLAGS = @LDFLAGS@