summaryrefslogtreecommitdiff
path: root/package/libpcap/patch-Makefile_in
diff options
context:
space:
mode:
Diffstat (limited to 'package/libpcap/patch-Makefile_in')
-rw-r--r--package/libpcap/patch-Makefile_in14
1 files changed, 14 insertions, 0 deletions
diff --git a/package/libpcap/patch-Makefile_in b/package/libpcap/patch-Makefile_in
new file mode 100644
index 000000000..cd7bdc961
--- /dev/null
+++ b/package/libpcap/patch-Makefile_in
@@ -0,0 +1,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.6.2.orig/Makefile.in 2014-07-03 00:12:49.000000000 +0200
++++ libpcap-1.6.2/Makefile.in 2014-09-12 15:12:48.567519024 +0200
+@@ -61,7 +61,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@