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
|