distinguish compiler version before adding new -Wno option

This commit is contained in:
nhmall
2020-08-10 10:03:12 -04:00
parent 084d1a8773
commit ef9caca4da

View File

@@ -132,7 +132,10 @@ endif
endif
CFLAGS=-g -O -I../include -DNOTPARMDECL
GTEQ9 := $(shell expr `gcc -dumpversion | cut -f1 -d.` \>= 9)
ifeq "$(GTEQ9)" "1"
CFLAGS+=-Wno-format-overflow
endif #compiler version greater than or equal to 9
CFLAGS+=-DDLB
CFLAGS+=-DCOMPRESS=\"/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\"
CFLAGS+=-DSYSCF -DSYSCF_FILE=\"$(HACKDIR)/sysconf\" -DSECURE