summaryrefslogtreecommitdiff
path: root/package/libpcap/patches/patch-Makefile_in
blob: 203dd3c6e3f8bf36fe0664ba22e14ca0b2bad9c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
	Use $(sort) here, which implicitly removes duplicates.
	Otherwise our CFLAGS are passed in via CCOPT and CFLAGS leading
	to duplicate -fhonour-copts passing.
--- libpcap-1.8.0.orig/Makefile.in	2016-07-30 15:42:44.000000000 +0200
+++ libpcap-1.8.0/Makefile.in	2016-08-05 02:22:41.124794216 +0200
@@ -62,7 +62,7 @@ DEPENDENCY_CFLAG = @DEPENDENCY_CFLAG@
 PROG=libpcap
 
 # Standard CFLAGS
-FULL_CFLAGS = $(CCOPT) $(INCLS) $(DEFS) $(CFLAGS)
+FULL_CFLAGS = $(sort $(CCOPT) $(INCLS) $(DEFS) $(CFLAGS))
 
 INSTALL = @INSTALL@
 INSTALL_PROGRAM = @INSTALL_PROGRAM@