diff options
author | Test_User <hax@andrewyu.org> | 2024-06-20 18:29:24 -0400 |
---|---|---|
committer | Test_User <hax@andrewyu.org> | 2024-06-20 18:29:24 -0400 |
commit | ef6f87193ab6628a2366b004a21c5cb21304c663 (patch) | |
tree | 8406b6c90f6f4a65ac19360e4fbc640779b52aa5 /Makefile | |
parent | 6a858830eb5ab1c8cd78e502471f88333b9bcca5 (diff) | |
download | haxircd-ef6f87193ab6628a2366b004a21c5cb21304c663.tar.gz haxircd-ef6f87193ab6628a2366b004a21c5cb21304c663.zip |
Seperate futex fom atomics
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -50,6 +50,7 @@ LDFLAGS = -lpthread printf '%s\n' 'LAST_HAXSERV_PSEUDOCLIENT = $(HAXSERV_PSEUDOCLIENT)' >> .makeopts printf '%s\n' 'LAST_SAFE_STACK = $(SAFE_STACK)' >> .makeopts printf '%s\n' 'LAST_FUTEX = $(FUTEX)' >> .makeopts + printf '%s\n' 'LAST_ATOMICS = $(ATOMICS)' >> .makeopts printf '%s\n' 'LAST_CFLAGS = $(ORIGINAL_CFLAGS)' >> .makeopts printf '%s\n' 'LAST_CC = $(CC)' >> .makeopts @@ -213,6 +214,14 @@ else FUTEX := $(LAST_FUTEX) endif +ifneq ($(ATOMICS),) +ifneq ($(ATOMICS),$(LAST_ATOMICS)) +rebuild = 1 +endif +else +ATOMICS := $(LAST_ATOMICS) +endif + ifeq ($(rebuild),1) .PHONY: .makeopts endif @@ -390,6 +399,10 @@ ifeq ($(FUTEX),1) CFLAGS += -DUSE_FUTEX endif +ifeq ($(ATOMICS),1) +CFLAGS += -DUSE_ATOMICS +endif + ifeq ($(SAFE_STACK),1) |