File: gcc10_ftbfs.patch

package info (click to toggle)
mdk4 4.1%2Bgit20200420-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,140 kB
  • sloc: ansic: 13,634; makefile: 144
file content (19 lines) | stat: -rw-r--r-- 721 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Fixes GCC10 FTBFS by using the not-default-anymore CFLAG '-fcommon'
 Reference: https://gcc.gnu.org/gcc-10/porting_to.html#common
Author: Samuel Henrique <samueloph@debian.org>
Forwarded: https://github.com/aircrack-ng/mdk4/pull/58
Index: mdk4/src/Makefile
===================================================================
--- mdk4.orig/src/Makefile
+++ mdk4/src/Makefile
@@ -1,7 +1,9 @@
 MDK_ROOT = ..
 include $(MDK_ROOT)/common.mak
 
-CFLAGS		+= -g -O3 -Wall -Wextra 
+# TODO: Remove '-fcommon' from CFLAGS and address issues, reference:
+# https://gcc.gnu.org/gcc-10/porting_to.html#common
+CFLAGS		+= -g -O3 -Wall -Wextra -fcommon
 LINKFLAGS	= -lpthread -lpcap $(LDFLAGS)
 
 SBINDIR		= $(PREFIX)/sbin