Do not duplicate default CFLAGS

This commit is contained in:
Vadim Vetrov 2024-12-01 18:24:30 +03:00
parent aefabe7e0a
commit f5a6c5718f
No known key found for this signature in database
GPG Key ID: E8A308689D7A73A5

View File

@ -10,14 +10,12 @@ CCLD:=$(CC)
LD:=ld
ifeq ($(USE_SYS_LIBS), no)
override CFLAGS += -Wall -Wpedantic -Wno-unused-variable -I$(DEPSDIR)/include -std=gnu11
override CFLAGS += -I$(DEPSDIR)/include
override LDFLAGS += -L$(DEPSDIR)/lib
REQ = $(LIBNETFILTER_QUEUE) $(LIBMNL) $(LIBCRYPTO)
else
override CFLAGS += -Wall -Wpedantic -Wno-unused-variable -std=gnu11
endif
override CFLAGS += -DPKG_VERSION=\"$(PKG_FULLVERSION)\"
override CFLAGS += -DPKG_VERSION=\"$(PKG_FULLVERSION)\" -Wall -Wpedantic -Wno-unused-variable -std=gnu99
LIBNFNETLINK_CFLAGS := -I$(DEPSDIR)/include
LIBNFNETLINK_LIBS := -L$(DEPSDIR)/lib