diff options
author | Test_User <hax@andrewyu.org> | 2024-07-24 02:48:49 -0400 |
---|---|---|
committer | Test_User <hax@andrewyu.org> | 2024-07-24 02:48:49 -0400 |
commit | 09c0ec3bdf113dd507135237603bf0096e642172 (patch) | |
tree | 6d4b1d55e475d515af61456bc5aac332800f40a9 /Makefile | |
parent | ae6d5cd81efaf533c46790bf5e39a6b563c24722 (diff) | |
download | haxircd-09c0ec3bdf113dd507135237603bf0096e642172.tar.gz haxircd-09c0ec3bdf113dd507135237603bf0096e642172.zip |
Probable outgoing IPv6 support
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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 |