From 10da2669dd33f09aa745688d2fb2072b6f6b2262 Mon Sep 17 00:00:00 2001 From: Test_User Date: Wed, 4 Sep 2024 07:05:12 -0400 Subject: Some prep for improved modules --- Makefile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index bf0c099..2d1bb07 100644 --- a/Makefile +++ b/Makefile @@ -247,7 +247,7 @@ ifeq ($(rebuild),1) .PHONY: .makeopts endif -CFLAGS += $(INCLUDEFLAGS) -D_REENTRANT -ggdb3 -Wall -Wextra -Wsign-conversion -Wno-unknown-warning-option -Wno-unused-parameter -Wno-implicit-fallthrough -Wno-alloc-size -std=gnu99 +CFLAGS += $(INCLUDEFLAGS) -fPIC -fno-plt -D_REENTRANT -ggdb3 -Wall -Wextra -Wsign-conversion -Wno-unknown-warning-option -Wno-unused-parameter -Wno-implicit-fallthrough -Wno-alloc-size -std=gnu99 USE_PLAINTEXT = 0 USE_CLIENT = 0 @@ -454,13 +454,13 @@ HaxIRCd: main.c .makeopts Makefile $(CC) main.c -o HaxIRCd HaxIRCd.so: $(OFILES) .makeopts Makefile - $(CC) $(OFILES) -shared -o $@ $(LDFLAGS) + $(LD) $(OFILES) -shared -o $@ $(LDFLAGS) %.o: %.c - $(CC) $(CFLAGS) -fPIC -c $< -o $@ + $(CC) $(CFLAGS) -c $< -o $@ -%.so: %.c - $(CC) $(CFLAGS) -shared -fPIC $< -o $@ $(LDFLAGS) +%.so: %.o + $(LD) $(LDFLAGS) -shared $< -o $@ $(call DEPS,config,o) @@ -531,11 +531,11 @@ $(call DEPS,pseudoclients,o) endif ifeq ($(HAXSERV_PSEUDOCLIENT),1) -$(call DEPS,pseudoclients/haxserv,so) +$(call DEPS,pseudoclients/haxserv,o) endif ifeq ($(SERVICES_PSEUDOCLIENT),1) -$(call DEPS,pseudoclients/services,so) +$(call DEPS,pseudoclients/services,o) endif clean: -- cgit v1.2.3