From bb66ab13a89e935fbf71b97ef86194f37556ce43 Mon Sep 17 00:00:00 2001 From: Vadim Vetrov Date: Thu, 8 Aug 2024 18:19:06 +0300 Subject: [PATCH] Fix buildsystem targets --- uspace.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uspace.mk b/uspace.mk index 8c94692..afb58f1 100644 --- a/uspace.mk +++ b/uspace.mk @@ -5,7 +5,7 @@ DEPSDIR := $(BUILD_DIR)/deps CC:=gcc CCLD:=$(CC) LD:=ld -override CFLAGS += -Wall -Wpedantic -Wno-unused-variable -I$(DEPSDIR)/include +override CFLAGS += -Wall -Wpedantic -Wno-unused-variable -I$(DEPSDIR)/include -std=gnu11 override LDFLAGS += -L$(DEPSDIR)/lib LIBNFNETLINK_CFLAGS := -I$(DEPSDIR)/include @@ -64,7 +64,7 @@ $(LIBNETFILTER_QUEUE): $(LIBNFNETLINK) $(LIBMNL) $(APP): $(OBJS) $(LIBNETFILTER_QUEUE) $(LIBMNL) @echo 'CCLD $(APP)' - $(CCLD) $(OBJS) -o $(APP) $(LDFLAGS) -lmnl -lnetfilter_queue + $(CCLD) $(OBJS) -o $(APP) $(LDFLAGS) -lmnl -lnetfilter_queue -lpthread $(BUILD_DIR)/%.o: %.c $(LIBNETFILTER_QUEUE) $(LIBMNL) config.h @echo 'CC $@'