From bbf9de67af3f16a23e981031d5e18a729f386f52 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Tue, 28 Jul 2020 19:33:46 +0200 Subject: server: Fix plugins makefile --- plugins/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/Makefile b/plugins/Makefile index a87e798..2979387 100644 --- a/plugins/Makefile +++ b/plugins/Makefile @@ -1,5 +1,5 @@ CC = gcc -CFLAGS = -Wall -Wextra -std=c11 -g -fwrapv -I.. -fPIC +CFLAGS = -Wall -Wextra -std=c11 -g -fwrapv -I.. ifeq ($(shell uname),Darwin) SO_EXT = dylib @@ -32,4 +32,4 @@ $(PLUGINNAME)/%.$(SO_EXT): $(patsubst %.c,%.o,$(wildcard $(PLUGINNAME)/*.c)) $(CC) $(SO_FLAGS) -o $@ $(filter %.o,$^) $(PLUGINNAME)/%.o: $(PLUGINNAME)/%.c $(wildcard $(PLUGINNAME)/*.h) $(wildcard ../*.h) - $(CC) $(CFLAGS) $(SO_FLAGS) -o $@ $< + $(CC) -c $(CFLAGS) -o $@ $< -- cgit v1.2.3-70-g09d2