aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index fe1f263..dd49dbe 100644
--- a/Makefile
+++ b/Makefile
@@ -53,6 +53,7 @@ LDFLAGS = -lpthread
printf '%s\n' 'LAST_FUTEX = $(FUTEX)' >> .makeopts
printf '%s\n' 'LAST_MISERABLE_SPINLOCKS = $(MISERABLE_SPINLOCKS)' >> .makeopts
printf '%s\n' 'LAST_ATOMICS = $(ATOMICS)' >> .makeopts
+ printf '%s\n' 'LAST_IPv6 = $(IPv6)' >> .makeopts
printf '%s\n' 'LAST_CFLAGS = $(ORIGINAL_CFLAGS)' >> .makeopts
printf '%s\n' 'LAST_CC = $(CC)' >> .makeopts
@@ -240,6 +241,14 @@ else
ATOMICS := $(LAST_ATOMICS)
endif
+ifneq ($(IPv6),)
+ifneq ($(IPv6),$(LAST_IPv6))
+rebuild = 1
+endif
+else
+IPv6 := $(LAST_IPv6)
+endif
+
ifeq ($(rebuild),1)
.PHONY: .makeopts
endif
@@ -437,6 +446,12 @@ endif
+ifeq ($(IPv6),1)
+CFLAGS += -DUSE_IPv6
+endif
+
+
+
ifeq ($(SAFE_STACK),1)
CFLAGS += -fstack-check
endif