aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTest_User <hax@andrewyu.org>2024-09-04 07:05:12 -0400
committerTest_User <hax@andrewyu.org>2024-09-04 07:05:12 -0400
commit10da2669dd33f09aa745688d2fb2072b6f6b2262 (patch)
tree2cd696545a3b9facde297c70b6646be57d118a7e
parentca7ebac6f4a0137d581faa4168a8719463b3f713 (diff)
downloadhaxircd-10da2669dd33f09aa745688d2fb2072b6f6b2262.tar.gz
haxircd-10da2669dd33f09aa745688d2fb2072b6f6b2262.zip
Some prep for improved modules
-rw-r--r--Makefile14
1 files 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: