From 35a458a5c316b4a5700102030a9a9e15c5318ae8 Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Fri, 24 May 2019 11:17:54 +0200 Subject: [PATCH] iw: really fix build Now after the previous fix, version.o was linked twice... Signed-off-by: Johannes Berg --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 30749ad..9bcfa8a 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,9 @@ CFLAGS += -Wall -Wextra -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-a -Werror-implicit-function-declaration -Wsign-compare -Wno-unused-parameter \ $(CFLAGS_EVAL) -OBJS = $(sort $(patsubst %.c,%.o,$(wildcard *.c))) version.o +_OBJS := $(sort $(patsubst %.c,%.o,$(wildcard *.c))) +VERSION_OBJS := $(filter-out version.o, $(_OBJS)) +OBJS := $(VERSION_OBJS) version.o ALL = iw @@ -87,8 +89,6 @@ endif all: $(ALL) -VERSION_OBJS := $(filter-out version.o, $(OBJS)) - version.c: version.sh $(patsubst %.o,%.c,$(VERSION_OBJS)) nl80211.h iw.h Makefile \ $(wildcard .git/index .git/refs/tags) @$(NQ) ' GEN ' $@ -- 2.39.2