mirror of
https://github.com/aircrack-ng/rtl8188eus.git
synced 2026-04-20 18:08:55 +00:00
Modified kernel version checks for Centos 7.9
This commit is contained in:
5
Makefile
5
Makefile
@@ -10,6 +10,11 @@ EXTRA_CFLAGS += -Wno-unused
|
||||
EXTRA_CFLAGS += -Wno-vla
|
||||
EXTRA_CFLAGS += -Wno-date-time
|
||||
|
||||
REDHAT_VER := $(shell cut -f4 -d" " /etc/redhat-release |cut -d"." -f1,2 )
|
||||
ifeq ($(REDHAT_VER), 7.9)
|
||||
EXTRA_CFLAGS += -DRHEL79
|
||||
endif
|
||||
|
||||
GCC_VER_49 := $(shell echo `$(CC) -dumpversion | cut -f1-2 -d.` \>= 4.9 | bc )
|
||||
ifeq ($(GCC_VER_49),1)
|
||||
EXTRA_CFLAGS += -Wno-date-time # Fix compile error && warning on gcc 4.9 and later
|
||||
|
||||
Reference in New Issue
Block a user